CSC301: Data Structures

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/30

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts from the CSC301 Data Structures course, including definitions, terminology, and classifications related to data structures.

Last updated 5:33 PM on 2/7/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

31 Terms

1
New cards

What are the main topics covered in the CSC301 Data Structures course?

Primitive types, arrays, records, strings and string processing, data representation in memory, stack and heap allocation, queues, trees.

2
New cards

What is the logical or mathematical model of a particular organization of data called?

Data structure.

3
New cards

What are the five considerations for choosing a particular data model?

Short access time, ease of update, economy of storage, simple maintenance, reliability.

4
New cards

What is an entity in the context of data structures?

An entity is something that has certain attributes or properties which may be assigned values.

5
New cards

What is the difference between data items and group items?

Data items are single units of values, while group items are data items divided into sub-items.

6
New cards

What does the term 'field' represent in data structures?

A single elementary unit of information representing an attribute of an entity.

7
New cards

How are records classified in data structures?

Records are classified into fixed-length records and variable-length records.

8
New cards

What defines a fixed-length record?

All records contain the same data items with the same amount of space assigned to each data item.

9
New cards

How are variable-length records different from fixed-length records?

Variable-length records can contain different lengths and may have a minimum and maximum length.

10
New cards

What is a primary key in the context of files in data structures?

A field in a record that uniquely determines the record in the file.

11
New cards

What are the two classifications of data structures?

Primitive data structures and non-primitive data structures.

12
New cards

What are primitive data structures?

Fundamental data types supported by a programming language, such as integers, reals, characters, and booleans.

13
New cards

What are non-primitive data structures?

Data structures created using primitive data structures, such as arrays, linked lists, queues, stacks, trees, and graphs.

14
New cards

What is a linear data structure?

A data structure where elements form a sequence or a linear list.

15
New cards

What is an array in the context of data structures?

A linear data structure consisting of a list of similar data elements referenced by consecutive numbers.

16
New cards

How is a two-dimensional array defined?

A collection of similar data elements where each element is referenced by two subscripts.

17
New cards

What distinguishes a binary tree?

A binary tree is a finite set of elements called nodes, with a distinguished node called the root, and each node can have at most two successors.

18
New cards

What are terminal nodes in a binary tree?

Nodes with no successors.

19
New cards

What is the height of a tree?

The maximum number of nodes in a branch of the tree.

20
New cards

What does the term 'root' refer to in a tree?

The top node in a tree.

21
New cards

What is a path in a binary tree?

A sequence of edges connecting nodes.

22
New cards

What is the significance of sibling nodes in a tree?

Sibling nodes are nodes that share the same parent.

23
New cards

What is a leaf node in a tree structure?

A node with no children, also called a terminal node.

24
New cards

What does the degree of a node refer to in a tree?

The number of subtrees of a node.

25
New cards

What is an internal node in terms of tree structures?

A node with at least one child.

26
New cards

What is a non-terminal node?

A node that is not a terminal node.

27
New cards

What does the level of a node in a tree indicate?

The level denotes the node's distance from the root, with the root assigned level number 0.

28
New cards

Define a descendant of a node in a tree.

A node reachable by proceeding from parent to child repeatedly.

29
New cards

What is a predecessor in a tree?

The unique parent of a node.

30
New cards

What is used to represent an algebraic expression using trees?

Each variable or constant in the expression appears in an internal node in a binary tree.

31
New cards

What is an edge in a binary tree?

A line drawn from a node to its successor.