Search Header Logo
Week 9 (FL2)

Week 9 (FL2)

Assessment

Presentation

Computers

University

Practice Problem

Easy

Created by

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

media
media
media

3

Multiple Choice

In computer science, a road network is often modeled as a:

1

Graph

2

Equation

3

Image

4

Table

4

Multiple Choice

Among following options which is the highest level of data abstraction

1

Variable storage in main memory (RAM)

2

How OS handles the memory management

3

Data created in Python

4

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

media

6

media

7

Multiple Select

Why is abstraction important in computer science, especially when modeling complex systems like road networks?

1

It helps us solve simple

2

-

3

-

4

-

8

Multiple Choice

Which of the following is NOT a reason why graphs are commonly used to represent data?

1

They naturally represent entities and relationships

2

They can model social networks

3

They are only used for mathematical equations

4

They can represent any network

9

media

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?

1

In this context, nodes represent land and edges represent the bridges connecting them.

2
Nodes represent bridges and edges represent landmasses.
3
Nodes represent cities and edges represent railways.
4
Nodes represent water bodies and edges represent roads.

11

Multiple Choice

What is the main challenge in the Seven Bridges of Königsberg problem as described in the slides?

1

Finding the shortest path between two points

2

Crossing each bridge exactly once

3

Visiting each node exactly once

4

Coloring the map with minimum colors

12

media

13

media

14

media

15

Multiple Choice

How the map coloring problem can be represented as a graph and what is the significance of conflict edges.

1
Conflict edges are used to connect non-adjacent regions.
2
Conflict edges represent regions that can have the same color.
3
The map coloring problem involves coloring edges instead of regions.
4
In the map coloring problem, conflict edges represent adjacent regions that cannot have the same color.

16

media

17

media

18

Multiple Choice

Which of the following are constraints that must be considered when scheduling exams?

1

Two exams cannot be scheduled at the same time if a student is taking both

2

All exams must be scheduled in the same room

3

Exams must be scheduled on different days

4

Each exam must be scheduled for two time slots

19

media

20

media

21

Multiple Choice

Modeling the exam scheduling problem as a graph, what does an edge between two nodes represent?

1
An edge represents the duration of an exam.
2
An edge indicates the number of students enrolled in an exam.
3
An edge shows the location of the exam.
4
An edge represents a conflict or dependency between two exams.

22

media

23

media

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

media

26

media

27

Multiple Choice

Which of the following best describes how the day change problem can be modeled?

1

As a cycle in a graph

2

As a non-cyclic graph

3

As a sequence of unrelated events

4

As a list of numbers

28

media

29

Fill in the Blanks

30

media

31

Multiple Choice

What happens if you pay $1 from state 100 in the vendor machine?

1

It brings you to state 150 and dispatches the candy.

2

It brings you to state 50.

3

It brings you to state 0.

4

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

media

34

Multiple Select

Which of the following are constraints in the Man, Cabbage, Goat, Wolf problem?

1

The man can bring only one item at a time.

2

The goat cannot stay alone with the cabbage.

3

The wolf cannot stay alone with the goat.

4

The man must always stay with the cabbage.

35

media

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.

1

Man

2

Cabbage

3

Goat

4

Wolf

37

media

38

media

39

Multiple Select

After making the first 'good' move in the MCGW problem, what are the two possible next moves?

1

| MCGW -> MG | CW -> | MCGW

2

| MCGW -> MG | CW -> G | MCW

3

| MCGW -> MC | GW -> | MCGW

4

| MCGW -> MW | CG -> | MCGW

40

media

41

Fill in the Blanks

42

Fill in the Blanks

43

media

44

Open Ended

Why is a tuple preferred over a list in Python when modeling the states in the MCGW problem?

45

media

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?

1

(E, E, E, E)

2

(W, W, W, W)

3

(E, W, E, W)

4

(W, E, W, E)

47

media

48

media

49

media

50

media

51

media

COMP1010/COMP1002
Week 9 (FL2)

Show answer

Auto Play

Slide 1 / 51

SLIDE