Algorithm to find maximum and minimum numbers, Data Structure & Algorithms

Give an algorithm to find both the maximum and minimum of 380 distinct numbers that uses at most 568 comparisons.

Posted Date: 2/16/2013 2:52:41 AM | Location : United States







Related Discussions:- Algorithm to find maximum and minimum numbers, Assignment Help, Ask Question on Algorithm to find maximum and minimum numbers, Get Answer, Expert's Help, Algorithm to find maximum and minimum numbers Discussions

Write discussion on Algorithm to find maximum and minimum numbers
Your posts are moderated
Related Questions
Declaring a two dimensional array   A two dimensional array is declared same to the way we declare a one-dimensional array except that we state the number of elements in both di

How do collisions happen during hashing? Usually the key space is much larger than the address space, thus, many keys are mapped to the same address. Assume that two keys K1 an

reverse the order of elements on a stack S using two additional stacks using one additional stack

What is bubble sort? Bubble Sort: The basic idea in bubble sort is to scan the array to be sorted sequentially various times. Every pass puts the largest element in its corr

Representation of Linked list in Memory:- Each node has an info part and a pointer to the next node also known as link. The number of pointers is two in case of doubly linked

The Euclidean algorithm is an algorithm to decide the greatest common divisor of two positive integers. The greatest common divisor of N and M, in short GCD(M,N), is the largest in

How To implement stack using two queues , analyze the running time of the stack operations ?

Readjusting for tree modification calls for rotations in the binary search tree. Single rotations are possible in the left or right direction for moving a node to the root position

important points on asymptotic notation to remember

How branching takes place in Instruction pipeline. Explain with suitable examples