Skip to main content

Recursion

  • Chapter
  • First Online:
Computational Thinking
  • 2015 Accesses

Abstract

Do you remember the tournament problem among n players we discussed in Chapter 4? The proposed algorithm, based on the tree of matches (Figures 4.3 and 4.4), goes from the leaves, where all the players are placed, up to the root, where the champion resides, determining and storing in each level the winners of the different rounds. However, the sequence of matches could be defined the other way around, that is, from the root to the leaves, establishing that the tournament is organized as the match between the winners of two tournaments among n / 2 players allocated to the two halves of the knockout stage; and these two tournaments are equally defined among groups of n / 4 players, down to the matches between pairs of players in the leaves (as is known, in order to simplify calculations the organizers admit a number of participants equal to a power of two).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Ferragina, P., Luccio, F. (2018). Recursion. In: Computational Thinking. Springer, Cham. https://doi.org/10.1007/978-3-319-97940-3_11

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-97940-3_11

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-97939-7

  • Online ISBN: 978-3-319-97940-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics