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.
13. Complete the tournament sort of the list 22,8, 14, 17,3,9,27, ii. Show the labels of the vertices at each step.
Want to see the full answer?
Check out a sample textbook solutionChapter 11 Solutions
DISCRETE MATHEMATICS LOOSELEAF W/CONNECT
- Directions: Use the equation A = Pet to answer each question and be sure to show all your work. 1. If $5,000 is deposited in an account that receives 6.1% interest compounded continuously, how much money is in the account after 6 years? 2. After how many years will an account have $12,000 if $6,000 is deposited, and the account receives 3.8% interest compounded continuously? 3. Abigail wants to save $15,000 to buy a car in 7 years. If she deposits $10,000 into an account that receives 5.7% interest compounded continuously, will she have enough money in 7 years? 4. Daniel deposits $8,000 into a continuously compounding interest account. After 18 years, there is $13,006.40 in the account. What was the interest rate? 5. An account has $26,000 after 15 years. The account received 2.3% interest compounded continuously. How much was deposited initially?arrow_forwardIf m<RST=(12x-1) m<RSU(9x-15) and m<UST=53arrow_forwardi attached the question and the way i solved it, i believe i made an error, could you point it out for me because the correct answer is 3pi/2correct answer is D, please see both attached photosarrow_forward
- TRIANGLES INDEPENDENT PRACTICE ription Criangle write and cow Using each picture or description of triangle write and solve an equation in ordering the number of degrees in each angle TRIANGLE EQUATION & WORK ANGLE MEASURES A B -(7x-2)° (4x) (3x)° (5x − 10) C (5x – 2) (18x) E 3. G 4. H (16x)° LL 2A= 2B= ZE=arrow_forwardi circled the correct answer could you explain how to get that answer, as well as disprove the other optionsarrow_forwardthe answer is A, could you explain how using STOKE'S theoremarrow_forwardcould you explain this pleasethe answer is has sum 1but i dont know how to calculate itarrow_forwardcan you explain why the answer is 1/3arrow_forwardThe position of a particle that moves along the x-axis is defined by x = - 3t^2 + 12^t - 6 f, where t is in seconds. For the time interval t = 0 to t = 3 s, (1) plot the position, velocity, and acceleration as functions of time; (2) calculate the distance traveled; and (3) determine the displacement of the particleshow the graph and write the solution with a penarrow_forwardarrow_back_iosSEE MORE QUESTIONSarrow_forward_ios
- 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