Search Header Logo
Unit 3: Data Structure

Unit 3: Data Structure

Assessment

Presentation

Computers

12th Grade

Practice Problem

Easy

Created by

Andrew Dawson

Used 1+ times

FREE Resource

6 Slides • 11 Questions

1

Unit 3: Data Structure

2

Pre-order traversal (depth first search):
Order - root, traverse the left sub-tree then traverse the right sub-tree

Binary trees and traversal
Pre-order traversal

media

3

Order - Traverse left sub-tree, node, then traverse right sub-tree.

Binary trees and traversal
In-order traversal

media

4

Order - Traverse left sub-tree, then traverse right sub-tree, then the node.

Binary trees and traversal
Post-order traversal

media

5

Draw

A binary tree structure is designed to contain strings and uses the following rules:

• The left pointer indicates the condition “earlier or at the same position in the alphabet”

• The right pointer indicates the condition “later in the alphabet”


Construct a binary tree using these rules and the data entered in the following order: Goat, Duck, Fox, Bear, Ant, Cat, Leopard, Owl, Mayfly, Insect, Jaguar, Emu.

You may use the initial letters if you wish.

6

Fill in the Blank

7

Fill in the Blank

8

Fill in the Blank

9

Draw

Draw a representation of a binary tree using the data items: Smith, Jones, Ahmed, Lewis, Thomas, Brown

10

Categorize

Options (8)

Clone a tree

Count the number of leaves

Convert expression tree to prefix notation

Sort/search a binary tree

Accept traversing alphabetically

Deleting / Undo a binary tree

Stack-based programming

Convert postfix notation to expression tree

Match the examples to each of the pre/in/post order methods

pre-order
in-order
post-order

11

media

Stacks are: Last in, first out (LIFO) data structures.

Pushing: Adding data to the stack.

Popping: Taking data off the stack.

Stacks

12

media

Queues are: First in, first out (FIFO) data structures.

Queues

13

Fill in the Blank

Type answer...

14

Open Ended

Explain the differences between stack and queue data structures [4 marks]

15

Draw

b) i) [2]

16

Draw

b) ii) [2]

17

Drag and Drop

Explain the difference between searching for an item in an ordered list compared with searching an unordered list.



When searching an ​
list the search can be ​
when an item ​
than the search value (or less than) is reached.

When searching an ​
list the search ​cannot be terminated until the ​
item has been reached.
Drag these tiles and drop them in the correct blank above
ordered
terminated
greater
unordered
last
first
less

Unit 3: Data Structure

Show answer

Auto Play

Slide 1 / 17

SLIDE