IB Comp Sci SL - May 26 2017 Lesson Notes
What are we going to learn today?[edit]A local charity organizes a half-marathon to raise money. The rules to participate in the half-marathon are as follows:
During registration, an array, PARTICIPANTS, with 450 positions is used to hold the abbreviated team names that are declared by each participant. Simultaneously, a collection TNAMES is generated: any new team name that is declared is added to the collection. (a) State the minimum size of TNAMES to ensure the names of all potential teams can be stored. [1] Part of the array PARTICIPANTS is shown below, where, for example, the first participant declared that they are part of team TK. The initial part of the collection TNAMES is also shown, with arrows indicating the direction of growth. TIMING is initialized to zero before the race starts, and updated with the finishing times for each participant. The algorithm sum3best is able to output the sum of the three fastest times from any group of times that are passed to the algorithm. (d) Describe the steps of an algorithm that will find the winning team, as determined by the marathon rules clearly mention the use of existing or of new data structures. |
What is our homework?[edit]None today |
|
How am I being assessed today?[edit]
|
||
Standards we are covering today[edit]These standards are used from the IB Computer Science Subject Guide[1]
|
As a computer scientist, you have:[edit]
|
|
Credits[edit] |
- ↑ IB Diploma Programme Computer science guide (first examinations 2014). Cardiff, Wales, United Kingdom: International Baccalaureate Organization. January 2012.