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
what is the difference between data type and abstract data type

Advantages of dry running a flowchart When dry running a flowchart it's advisable to draw up a trace table illustrating how variables change their values at every stage in the

This notation bounds a function to in constant factors. We say f(n) = Θ(g(n)) if there presents positive constants n 0 , c 1 and c 2 such that to the right of n 0 the value of f

Explain the representations of graph. The different ways of representing a graph is: Adjacency list representation : This representation of graph having of an array Adj of

List various problem solving techniques. There are two techniques:- 1.  Top down 2.  Bottom- up

/* The program accepts matrix like input & prints the 3-tuple representation of it*/ #include void main() { int a[5][5],rows,columns,i,j; printf("enter the order of

Definition of Algorithm Algorithm must have the following five characteristic features: 1.      Input 2.      Output 3.      Definiteness 4.      Effectiveness 5

A circular queue can be implemented through arrays or linked lists. Program 6 gives the array implementation of any circular queue. Program 6: Array implementation of any Circu

You are given an undirected graph G = (V, E) in which the edge weights are highly restricted. In particular, each edge has a positive integer weight of either {1,2,...,W}, where W

How sparse matrix stored in the memory of a computer?