Hand a shuffled pack of cards to two people and tell them both to put it in order. One of them goes through the pack again and again, swapping any neighbouring pair that is the wrong way round, until a whole pass produces no swaps at all. The other splits the pack in half, gives half to a friend, and when the two sorted halves come back merges them by repeatedly taking whichever of the two top cards is lower. Both finish with a sorted pack. On fifty-two cards they finish at about the same time. On fifty-two thousand they do not.
Those are the bubble sort and the merge sort, and this specification asks for something different from each. For the bubble sort you must know one specific version, with two nested loops, and be able to follow and write pseudocode for it. For the merge sort you must be able to explain it in prose and demonstrate it on a given set of data, and you will not be asked to write pseudocode for it. Then you must compare and contrast the two. Knowing which of those three demands applies to which algorithm saves you from revising the wrong thing.
Dieses Thema ist als Karte dargestellt, damit die Zusammenhange sichtbar werden.
Mindmap in der App offnen
Schnelles Abfragen der Fakten, die zu diesem Thema gepruft werden.
Diese Karten in der App uben
Holen Sie sich die Green Bridge CBT App auf Handy oder Computer fuer die komplette IGCSE-Bibliothek: fruehere Pruefungen, Bewertungsschemata, Mindmaps, Lernkarten und Audiolektionen.
Herzlichen Glückwunsch zum Abschluss der Lektion über Sorting Algorithms. Jetzt, da Sie die wichtigsten Konzepte und Ideen erkundet haben,
Sie werden auf eine Mischung verschiedener Fragetypen stoßen, darunter Multiple-Choice-Fragen, Kurzantwortfragen und Aufsatzfragen. Jede Frage ist sorgfältig ausgearbeitet, um verschiedene Aspekte Ihres Wissens und Ihrer kritischen Denkfähigkeiten zu bewerten.
Nutzen Sie diesen Bewertungsteil als Gelegenheit, Ihr Verständnis des Themas zu festigen und Bereiche zu identifizieren, in denen Sie möglicherweise zusätzlichen Lernbedarf haben.
Bearbeiten Sie diese Fragen in der App
Bearbeiten Sie diese Fragen in der App
"Introduction to Computer Science: Sample Algorithms by Problem" by OpenStax, OpenStax, Rice University, licensed under CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/). Source: https://openstax.org/books/introduction-computer-science/pages/3-5-sample-algorithms-by-problem. Access for free at https://openstax.org/books/introduction-computer-science/pages/1-introduction
Von anderen Organisationen unter offenen Lizenzen veröffentlicht und wie gewünscht genannt. Links öffnen deren Websites.
Möchten Sie Übungsklausuren zu Sorting Algorithms üben? Laden Sie die Green Bridge CBT App herunter, um Übungsklausuren und vollständige Prüfungssimulationen zu diesem Thema zu erhalten.
Alles, was du brauchst, um in JAMB, WAEC & NECO zu glänzen.