home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!destroyer!cs.ubc.ca!unixg.ubc.ca!unixg.ubc.ca!israel
- From: israel@unixg.ubc.ca (Robert B. Israel)
- Newsgroups: sci.math
- Subject: Re: comparison problem
- Date: 18 Nov 92 23:55:01 GMT
- Organization: The University of British Columbia
- Lines: 17
- Distribution: usa
- Message-ID: <israel.722130901@unixg.ubc.ca>
- References: <1992Nov18.161028.11906@seas.gwu.edu>
- NNTP-Posting-Host: unixg.ubc.ca
-
- In <1992Nov18.161028.11906@seas.gwu.edu> chihy@seas.gwu.edu (Chih-Hsun Yao) writes:
-
- >Hi, everyone:
- > I got problem with following question:
-
- >Describe an algorithm that finds the largest and second largest integer in a
- >set of (2^m) integers using at most m+(2^m)-2 comparisons.
- >(Hint: Consider binary tree tournament)
-
- > My problem is following: if I use the way of binary tree tournament,
- Sounds awfully like homework, so I'll just give a hint: the second largest
- is compared to the largest at some point in the tournament.
- --
- Robert Israel israel@math.ubc.ca
- Department of Mathematics or israel@unixg.ubc.ca
- University of British Columbia
- Vancouver, BC, Canada V6T 1Y4
-