All the lab programs from the 5sem syllabus. They are my versions of the program because original ones suck big time.
- C Compiler (preferably gcc)
- bash shell
Part A:
- Selection Sort
- 0/1 Knapsack
- Min & Max values
- Quick Sort
Part B:
- Adjacency Matrix of a Graph
- Sum of Subsets
- Job Sequencing
- Optimal Binary Search Tree
-
Clone the repository
git clone https://github.com/saivishnu725/daa-lab-5sem.git cd daa-lab-5sem/
-
a. Use this function to view/run the code
c () { filename=$1 name=$(onlyname $filename) $EDITOR $filename gcc -o $name $filename ./$name } cr () { filename=$1 name=$(onlyname $filename) gcc -o $name $filename ./$name }
b. Example
#view the code in your editor and run it on exit c filename.c # run the code directly without viewing it cr filename.c