This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//******************************************************************* | |
// File: TwosComplementBinaryMultiplication.c | |
// Author(s): Mohamed Ennahdi El Idrissi | |
// Date: 06-Aug-2012 | |
// | |
// Input Files: NONE | |
// Output Files: NONE | |
// Description: CSC 2304 - <Computer Architecture and Organization> | |
// <Computer Arithmetic> | |
// This program implements the Two's Complement Binary Multiplication algorithm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//******************************************************************* | |
// File: TwosComplementBinaryDivision.c | |
// Author(s): Mohamed Ennahdi El Idrissi | |
// Date: 06-Aug-2012 | |
// | |
// Input Files: NONE | |
// Output Files: NONE | |
// Description: CSC 2304 - <Computer Architecture and Organization> | |
// <Computer Arithmetic> | |
// This program implements the Two's Complement Binary Division algorithm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Mohamed Ennahdi El Idrissi | |
* CSC 2304 - Computer Organization and Architecture | |
* | |
* Converting a given number: | |
* - from Real Number to IEEE 754 | |
* - from IEEE 754 to Real Number | |
*/ | |
#include <stdio.h> | |
#include <math.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//******************************************************************* | |
// File: UnsignedBinaryDivision.c | |
// Author(s): Mohamed Ennahdi El Idrissi | |
// Date: 06-Aug-2012 | |
// | |
// Input Files: NONE | |
// Output Files: NONE | |
// Description: CSC 2304 - <Computer Architecture and Organization> | |
// <Computer Arithmetic> | |
// This program implements the Unsigned Binary Division algorithm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//******************************************************************* | |
// File: UnsignedBinaryMultiplication.c | |
// Author(s): Mohamed Ennahdi El Idrissi | |
// Date: 06-Aug-2012 | |
// | |
// Input Files: NONE | |
// Output Files: NONE | |
// Description: CSC 2304 - <Computer Architecture and Organization> | |
// <Computer Arithmetic> | |
// This program implements the Unsigned Binary Multiplication algorithm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define N 26 | |
/* | |
* This structure gathers the elements (letters) and their frequency. | |
*/ | |
typedef struct { | |
char sourceAlphabet[N]; | |
unsigned frequency; | |
} Symbol; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
/* | |
* M is the maximum size that a line can take. | |
*/ | |
#define M 100 | |
/* | |
* N is the maximum size that a column can take. | |
*/ | |
#define N 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Mohamed Ennahdi El Idrissi | |
*/ | |
#include <stdio.h> | |
/* | |
* M is the length of the string ( 0 < M <= 100 ) | |
*/ | |
#define M 100 | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
/* | |
* Maximum number of tournaments we can have. | |
*/ | |
#define MAX 1000 - 1 | |
/* | |
* Maximum size of the description string. | |
*/ | |
#define DESC 80 + 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define LIST_MAX_SIZE 200 | |
#define NUMBER_OF_WORDS 30 | |
#define NUMBER_OF_CHARACTERS 5 | |
typedef struct { | |
char word[NUMBER_OF_CHARACTERS]; | |
int number; | |
int hashedNumber; |
OlderNewer