

Week 9 (FL2)
Presentation
•
Computers
•
University
•
Practice Problem
•
Easy
COMP 3421
Used 1+ times
FREE Resource
30 Slides • 21 Questions
1
COMP1010/COMP1002
Week 9 (FL2)
2
In computer science, a road network is often modeled as a graph.
This is not a graph in mathematics.
This is also not to be confused with graphics in design.
This is further not to be confused with computer graphics.
Abstraction
3
Multiple Choice
In computer science, a road network is often modeled as a:
Graph
Equation
Image
Table
4
Multiple Choice
Among following options which is the highest level of data abstraction
Variable storage in main memory (RAM)
How OS handles the memory management
Data created in Python
Logical view of data, such as Graphs
5
Why graphs are so common?
They naturally represent entities (as nodes) and their relationships (as edges).
Abstraction
6
7
Multiple Select
Why is abstraction important in computer science, especially when modeling complex systems like road networks?
It helps us solve simple
-
-
-
8
Multiple Choice
Which of the following is NOT a reason why graphs are commonly used to represent data?
They naturally represent entities and relationships
They can model social networks
They are only used for mathematical equations
They can represent any network
9
10
Multiple Choice
How the Seven Bridges of Königsberg problem can be modeled using a graph. What do the nodes and edges represent in this context?
In this context, nodes represent land and edges represent the bridges connecting them.
11
Multiple Choice
What is the main challenge in the Seven Bridges of Königsberg problem as described in the slides?
Finding the shortest path between two points
Crossing each bridge exactly once
Visiting each node exactly once
Coloring the map with minimum colors
12
13
14
15
Multiple Choice
How the map coloring problem can be represented as a graph and what is the significance of conflict edges.
16
17
18
Multiple Choice
Which of the following are constraints that must be considered when scheduling exams?
Two exams cannot be scheduled at the same time if a student is taking both
All exams must be scheduled in the same room
Exams must be scheduled on different days
Each exam must be scheduled for two time slots
19
20
21
Multiple Choice
Modeling the exam scheduling problem as a graph, what does an edge between two nodes represent?
22
23
24
Open Ended
What additional considerations must be taken into account when assigning exams to time slots and rooms, as described in the final slide?
25
26
27
Multiple Choice
Which of the following best describes how the day change problem can be modeled?
As a cycle in a graph
As a non-cyclic graph
As a sequence of unrelated events
As a list of numbers
28
29
Fill in the Blanks
30
31
Multiple Choice
What happens if you pay $1 from state 100 in the vendor machine?
It brings you to state 150 and dispatches the candy.
It brings you to state 50.
It brings you to state 0.
It brings you to state 100.
32
Open Ended
Explain how the concept of a state diagram applies to both the day change problem and the vendor machine example.
33
34
Multiple Select
Which of the following are constraints in the Man, Cabbage, Goat, Wolf problem?
The man can bring only one item at a time.
The goat cannot stay alone with the cabbage.
The wolf cannot stay alone with the goat.
The man must always stay with the cabbage.
35
36
Multiple Choice
In a systematic approach to solve the Man, Cabbage, Goat, Wolf problem as outlined in the slides, which one item should be moved to the other side first.
Man
Cabbage
Goat
Wolf
37
38
39
Multiple Select
After making the first 'good' move in the MCGW problem, what are the two possible next moves?
| MCGW -> MG | CW -> | MCGW
| MCGW -> MG | CW -> G | MCW
| MCGW -> MC | GW -> | MCGW
| MCGW -> MW | CG -> | MCGW
40
41
Fill in the Blanks
42
Fill in the Blanks
43
44
Open Ended
Why is a tuple preferred over a list in Python when modeling the states in the MCGW problem?
45
46
Multiple Choice
Which of the following represents the correct initial state for [man, cabbage, goat, wolf] in the tuple model of the MCGW problem?
(E, E, E, E)
(W, W, W, W)
(E, W, E, W)
(W, E, W, E)
47
48
49
50
51
COMP1010/COMP1002
Week 9 (FL2)
Show answer
Auto Play
Slide 1 / 51
SLIDE
Similar Resources on Wayground
45 questions
Getting to Know Access
Presentation
•
University
44 questions
DSF - 09 Forensic Tools and Techniques
Presentation
•
University
45 questions
Email - Year 7 23/24
Presentation
•
KG - University
49 questions
Test2
Presentation
•
University
46 questions
Unit-1,2,3-Organizational Communication revision
Presentation
•
University
46 questions
Atoms, Tek 8.5B, and 8.5C
Presentation
•
KG - University
42 questions
CE 9-10 Keamanan Endpoint
Presentation
•
University
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
Afterschool Activities & Sports
Quiz
•
6th - 8th Grade
19 questions
ROAR Week 2026
Quiz
•
9th - 12th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
15 questions
Cool Tool:Chromebook
Quiz
•
6th - 8th Grade
22 questions
would you rather
Quiz
•
3rd - 11th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
Discover more resources for Computers
12 questions
Academic Integrity
Presentation
•
University
20 questions
IR Writing 201
Quiz
•
University
20 questions
Disney Trivia
Quiz
•
University
40 questions
Famous Logos
Quiz
•
7th Grade - University
4 questions
Benefits of Saving
Quiz
•
5th Grade - University
25 questions
USCB Policies and Procedures
Quiz
•
University
18 questions
Parent Functions
Quiz
•
9th Grade - University
20 questions
Empirical Rule Homwwork
Quiz
•
10th Grade - University