A team sport game has m players in a team and a tournament can have n competing teams. Team T1 ranks higher than team T2 if there is a way such that every member of T1 ranks higher than a corresponding member of T2 (note that the ranking is based on individual team members). (1) Design an efficient algorithm (pseudo code) to determine whether or not two teams T1 and T2 can be ranked. (2) Given n teams {T1, T2, ... , Tn}, abstract the team ranking problem as a graph. (3) Design an efficient algorithm (pseudo code) to find the longest sequence of teams such that Tij ranks higher than Tij + 1 for j = 1,2,..., k − 1. (4) Analyze the time complexity of your algorithm in terms of m and n

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 18SA
icon
Related questions
Question
A team sport game has m players in a team and a tournament can have n competing teams. Team
T1 ranks higher than team T2 if there is a way such that every member of T1 ranks higher than a
corresponding member of T2 (note that the ranking is based on individual team members).
(1) Design an efficient algorithm (pseudo code) to determine whether or not two teams T1
and T2 can be ranked.
(2) Given n teams {T1, T2, ... , Tn}, abstract the team ranking problem as a graph.
(3) Design an efficient algorithm (pseudo code) to find the longest sequence <Ti1 , Ti2 ,..., Tik> of teams such that Tij ranks higher than Ti+ 1 for j = 1,2,..., k − 1.
(4) Analyze the time complexity of your algorithm in terms of m and n.
 
 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps

Blurred answer
Knowledge Booster
Time complexity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole