The tournament sort is a sorting algorithm that works by building an ordered binary tree. We represent the elements to be sorted by vertices that sill become the leaves. We build up the tree one level at a time we would construct the tree representing the winners of matches in a tournament Working left to right, we compare pairs of consecutive elements, adding a parent vertex labeled with the larger of the two elements under comparison. We make similar comparisons between labels of vertices at each level until we reach the root of the tree that is labeled with the largest element. The tree constructed by the tournament sort of , 8.14,17,3,9,27,11 is ilinstrated in part(a)ef the figure. Once the argestelementhbeendetermined. The leaf with this labelisrelabeled by -s,which is definedtobelessthanevery element The labels of all vertices on the path from this vertex up to the root of the tree are recalculated, as shown in part (b) of the figure.
This produces the second largest element This process continues until the entire list has been sorted.
22. Given the coding scheme a: 001, b: ooo1. e: i, r: 0000, s: 0100, t: oil, x 01010, find the word represented by
a) 01110100011.
b) 0001110000.
c) 0100101010.
d) 01100101010.

Want to see the full answer?
Check out a sample textbook solution
Chapter 11 Solutions
DISCRETE MATHEMATICS LOOSELEAF W/CONNECT
- Do not use the Residue Theorem. Thank you.arrow_forwardA television network earns an average of $14 million each season from a hit program and loses an average of $8 million each season on a program that turns out to be a flop. Of all programs picked up by this network in recent years, 25% turn out to be hits and 75% turn out to be flops. At a cost of C dollars, a market research firm will analyze a pilot episode of a prospective program and issue a report predicting whether the given program will end up being a hit. If the program is actually going to be a hit, there is a 75% chance that the market researchers will predict the program to be a hit. If the program is actually going to be a flop, there is only a 30% chance that the market researchers will predict the program to be a hit. What is the maximum value of C that the network should be willing to pay the market research firm? Enter your answer in dollars, not in million dollars. $ __________ Calculate EVPI for this decision problem. Enter your answer in dollars, not in million…arrow_forwardEvaluate the line integral sin z dz, So sin where C is the portion of the curve y = x² from 0 to −1 + i.arrow_forward
- Let f(z) be complex differentiable everywhere in C. Fix two distinct complex numbers a and b and a circle C of radius R with |a| < R,|b| < R traversed in the counter-clockwise direction. Evaluate the integral Sc − f(z)dz (z - a)(z – b) in terms of a, b and the values of f at those points.arrow_forward| Let C be a circle (with a positive radius) such that z = 1 lies in its interior. Evaluate the contour integral So Tz zez (z - 1)³ = where C is traversed in the clockwise direction. dzarrow_forwardquestion 8arrow_forward
- Two construction companies are bidding against one another for the right to construct a new community center building. The first construction company, Fine Line Homes, believes that its competitor, Buffalo Valley Construction, will place a bid for this project according to the distribution shown in this table: Buffalo Valley's Bid Bid Probability $160,000 0.2 $165,000 0.5 $170,000 0.2 $175,000 0.1 Furthermore, Fine Line Homes estimates that it will cost $160,000 for its own company to construct this building. Given its fine reputation and long-standing service within the local community, Fine Line Homes believes that it will likely be awarded the project in the event that it and Buffalo Valley Construction submit exactly the same bids. Find the bid that maximizes Fine Line’s expected profit. Max expected profit $ ________ . Bid that maximizes profit $ ________ .arrow_forwardFind the area of the surface obtained by rotating the circle x² + y² = r² about the line y = r.arrow_forwardquestion 4 a and barrow_forward
- Discrete Mathematics and Its Applications ( 8th I...MathISBN:9781259676512Author:Kenneth H RosenPublisher:McGraw-Hill EducationMathematics for Elementary Teachers with Activiti...MathISBN:9780134392790Author:Beckmann, SybillaPublisher:PEARSON
- Thinking Mathematically (7th Edition)MathISBN:9780134683713Author:Robert F. BlitzerPublisher:PEARSONDiscrete Mathematics With ApplicationsMathISBN:9781337694193Author:EPP, Susanna S.Publisher:Cengage Learning,Pathways To Math Literacy (looseleaf)MathISBN:9781259985607Author:David Sobecki Professor, Brian A. MercerPublisher:McGraw-Hill Education





