/*Output Enter number of elements 5 Enter elements 5 4 3 2 1 Sorted array is 1 2 3 4 5 */ Advertisements

## Tower of Hanoi

/*Output Enter number of rings 3 Move top disc from tower x to top of tower y Move top disc from tower x to top of tower z Move top disc from tower y to top of tower z Move top disc from tower x to top of tower y Move top disc from tower…… Continue reading Tower of Hanoi

## Binary Search

/*Output Enter no. elements 5 Enter elements 65 98 44 112 36 Enter the number to be searched 112 Number found at position 4 */

## Maximum and Minimum

/*Output Enter number of elements 5 Enter elements 65 32 11 8 95 Max 95, Min 8 */

## Merge Sort

/*Output Enter no. of elements 5 Enter numbers 98 65 31 22 11 Sorted array is 11 22 31 65 98 */

## Quick Sort

/*Output Enter the number of elements in the array 5 Enter array elements 16 98 66 34 11 The sorted array is 11 16 34 66 98 */

## Binary Search Tree

/*Output Creating Tree Enter no. of nodes 8 Enter data 7 2 9 0 5 6 8 1 Enter 1.Insert 2.Delete 3.Preorder 4.Inorder 5.Postorder 6.Exit 3 7 2 0 1 5 6 9 8 Enter 1.Insert 2.Delete 3.Preorder 4.Inorder 5.Postorder 6.Exit 1 Enter data to be inserted 3 Enter 1.Insert 2.Delete 3.Preorder 4.Inorder 5.Postorder 6.Exit…… Continue reading Binary Search Tree