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> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
int Array[6][6]; | |
bool visited[6]; | |
void DFS(int root, bool visited[]) | |
{ | |
int i; |
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> | |
#include <stdbool.h> | |
int graph[6][6]; | |
bool visited[5]; | |
struct node{ | |
int data; | |
struct node *next; | |
}; |
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 SIZE 10000 | |
int myArray[SIZE - 1]; | |
void insertionSort(int x[]) | |
{ | |
int i, j; | |
int key; |
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 SIZE 10000 | |
int myArray[SIZE - 1]; | |
void selectionSort(int x[]) | |
{ | |
int i, j; | |
int key; |
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 QUEUESIZE 5 | |
int Queue[QUEUESIZE - 1]; | |
int frontElement = -1, rearElement = -1; | |
void enQueue(int item) | |
{ | |
if(rearElement > 4) |
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> | |
#include <stdlib.h> | |
#include <conio.h> | |
struct person{ | |
char firstName[19]; | |
char secondName[19]; | |
int age; | |
struct person *next; |
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> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#define STACKLIMIT 5 | |
// ************ Muhammed Eminoglu ************ | |
// *********www.algoritmauzmani.com*********** | |
// *********www.muhammedeminoglu.com********** |
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> | |
#include <stdlib.h> | |
////// ****** AUTHOR Muhammed Eminoðlu ****** \\\\\ | |
//////*****************************************\\\\\ | |
//////******************************************\\\\\ | |
//////**********www.muhammedeminoglu.com*********\\\\\ | |
//////**********www.algoritmauzmani.com***********\\\\\ | |
//Global variables |
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> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#define MELKOR 1000000 | |
/* | |
Create matris.txt file in your project folder and copy below content. | |
0 2 0 6 0 | |
2 0 3 8 5 | |
0 3 0 0 7 |
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> | |
#include <stdlib.h> | |
#include <conio.h> | |
struct node{ | |
char name[20]; | |
char secondName[20]; | |
int age; | |
struct node *next; | |
}; |
OlderNewer