Data Structure
Data Structure
INSTITUTE OF TECHNOLOGY
UNIVERSITY
arr[j + 1] = temp ; }
int main() {
int size;
int arr[size];
bubbleSort(arr, size);
printArray(arr, size);
return 0;
}
1
Mulatie Kindie
DATA structure and algorithm INDIVIDUAL ASSIGNMENT
#include <iostream>
Selection sorting on my editor and word format using namespace std;
int minIndex = i;
minIndex = j;
arr[i] = arr[minIndex];
arr[minIndex] = temp;
int main() {
int size;
int arr[size];
selectionSort(arr, size);
return 0;
}
1
Mulatie Kindie
DATA structure and algorithm INDIVIDUAL ASSIGNMENT
int j = i - 1;
arr[j + 1] = arr[j];
j--;
arr[j + 1] = key;
int main() {
int size;
int arr[size];
insertionSort(arr, size);
return 0;
}
1
Mulatie Kindie