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
The quick sort algorithm exploit design technique Divide and Conquer


Linked lists are among the most common and easiest data structures. They may be used to implement various other common abstract data types, including queues, stacks, symbolic expre

Type of Qualitative Method: Different  qualitative methods are suitable for different  types of study. Quite often we can  combine  qualitative and quantitative  methods. Many

Define a B-Tree Justas AVL trees are balanced binary search trees, B-trees are balanced M-way search trees. A B-Tree of order M is either the empty tree or it is an M-way searc

for i=1 to n if a[i}>7 for j=2 to n a[j]=a{j}+j for n=2 to n a[k]=a[j]+i else if a[1]>4 && a[1] for 2 to a[1] a[j]= a{j]+5 else for 2to n a[j]=a[j]+i ..


Painter's Algorithm As the name suggests, the algorithm follows the standard practice of a painter, who  would paint the background (such as a backdrop) first, then the major d

Q. Write down the algorithm which does depth first search through an un-weighted connected graph. In an un-weighted graph, would breadth first search or depth first search or neith

write a program that find,search&replace a text string