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
Row Major Representation In memory the primary method of representing two-dimensional array is the row major representation. Under this representation, the primary row of the a

Q. What is the need of using asymptotic notation in the study of algorithm? Describe the commonly used asymptotic notations and also give their significance.

Determine the number of character comparisons made by the brute-force algorithm in searching for the pattern GANDHI in the text

Abstract Data Types :- A useful tool for specifying the logical properties of a data type is the abstract data type or ADT. The term "abstract data type" refers to the basic mathem

Decision Tree A decision tree is a diagram that shows conditions and actions sequentially and therefore shows which condition is to be considered first, second and so on. It is

The fundamental element of linked list is a "record" structure of at least two fields. The object which holds the data & refers to the next element into the list is called a node .

If a Dequeue is implemented via arrays, then this will suffer with the similar problems which a linear queue had suffered. Program 8 gives the array implementation of Dequeue.

What is an unreachable code assertion An unreachable code assertion can be placed at the default case; if it's every executed, then program is in an erroneous state. A loop in

It is a useful tool for indicating the logical properties of data type. It is a collection of values & a set of operations on those values. Methodically, "a TYPE is a set, & elemen

The number of leaf nodes in a complete binary tree of depth d is    2 d