Difference between revisions of "2022 Paper 1 Revision Quiz"
(→Queues) |
(→Queues) |
||
Line 229: | Line 229: | ||
[[File:Graph3.png|300px]] | [[File:Graph3.png|300px]] | ||
− | Complete the adjacency | + | Complete the adjacency list (separate with comma no spaces): |
|type="{}"} | |type="{}"} | ||
<table style="border:1px solid black;"> | <table style="border:1px solid black;"> | ||
Line 236: | Line 236: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td>0</td><td> | + | <td>0</td><td>{ 1,2,3 }</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td>1</td><td> { | + | <td>1</td><td> { 0,2 } </td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td>2</td><td>{ | + | <td>2</td><td>{ 0,1 }</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td>3</td><td>{ | + | <td>3</td><td>{ 0 } </td> |
+ | </tr> | ||
+ | </table> | ||
+ | |||
+ | {Look at this graph: | ||
+ | |||
+ | [[File:Graph2.png|300px]] | ||
+ | |||
+ | Complete the adjacency list (separate with comma no spaces): | ||
+ | |type="{}"} | ||
+ | <table style="border:1px solid black;"> | ||
+ | <tr> | ||
+ | <td> </td><td>Connected</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>A</td><td> { B,D }</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>B</td><td> { C,D } </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>C</td><td>{ }</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>D</td><td>{ } </td> | ||
</tr> | </tr> | ||
</table> | </table> |
Revision as of 09:24, 3 June 2022
Contents
Recursion
Arrays
Abstract Data Types & Dynamic vs Static
Queues
Stacks
Graphs
Trees
Graph Traversal
Searching Algorithms
Sorting Algorithms
Optimisation Algorithms
Order of Complexity