This script helps to restart the below network related processes in linux, especialy ubuntu flavour.
- networking
- network-manager
program to do binary search
$ g++ binary_search.cpp
$ ./a.out
Element is present at index 3
Program to do quick sort.
$ g++ quick_sort.cpp
$ ./a.out
Enter the number of data element to be sorted: 5
Enter element 1: 301298
Enter element 2: 93874
Enter element 3: 123
Enter element 4: 9034568
Enter element 5: 34
Sorted Data
1)34
2)123
3)93874
4)301298
5)9034568
Program to do merge sort.
$ g++ merge_sort.cpp
$ ./a.out
Enter the number of elements : 5
Enter element 1: 3904
Enter element 2: 123
Enter element 3: 098
Enter element 4: 8756
Enter element 5: 304978
Sorted Data
1)98
2)123
3)3904
4)8756
5)304978