CPE 206 Data Structures & Algorithms - Introductory Concepts

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

1/19

flashcard set

Earn XP

Description and Tags

Comprehensive practice flashcards covering introductory data science concepts, algorithm properties, pseudo-code syntax, and BigO efficiency metrics.

Last updated 11:27 AM on 5/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

What is the definition of data as provided in the lecture?

A collection of facts from which conclusions may be drawn.

2
New cards

What are the four types of data listed in the notes?

  1. Textual, 2. Numeric, 3. Audio, 4. Video
3
New cards

What is the basic formula or components of an algorithm?

Algorithm=Input+Process+Output\text{Algorithm} = \text{Input} + \text{Process} + \text{Output}

4
New cards

What is a Data Structure?

A particular way of storing and organizing data in a computer so that it can be used efficiently and effectively; the logical or mathematical model of a particular organization of data.

5
New cards

List the six fundamental operations performed on data structures.

Traversing, Searching, Insertion, Deletion, Sorting, and Merging.

6
New cards

How is the 'Traversing' operation defined?

Accessing each data element exactly once so that certain items in the data may be processed.

7
New cards

What are the characteristics of a 'good' algorithm?

It must be correct, finite (in time and size), terminating, unambiguous, and space and time efficient.

8
New cards

Why is Natural Language (NL) considered a poor choice for expressing algorithms?

Natural languages are notoriously ambiguous (unclear).

9
New cards

What is pseudo-code?

A shorthand way of describing a computer program using a mixture of Natural Language and Programming Language expressions without specific syntax.

10
New cards

In pseudo-code, what symbol is used as the assignment operator?

The left arrow sign (\leftarrow).

11
New cards

In pseudo-code, what symbol represents the equality relation in Boolean expressions?

The equal sign (==), which is equivalent to "==" in Java.

12
New cards

How are the indexing ranges defined for an nn-celled array AA in pseudo-code?

The cells are indexed from A[0]A[0] to A[n1]A[n - 1].

13
New cards

What is the primary difference between a pre-condition loop (While/For) and a post-condition loop (Do-While)?

Pre-condition loops check the condition before execution, while post-condition loops always execute the body at least once.

14
New cards

What is BigO Notation?

The industry standard for quantifiably measuring how efficient data structures are at different tasks; it scores them based on Accessing, Searching, Inserting, and Deleting.

15
New cards

What does the variable nn represent in a Time Complexity Equation?

The Size of the Data Set (the amount of elements contained within the Data Structure).

16
New cards

Which scenario is always used when judging data structures using BigO notation?

The worst-case scenario.

17
New cards

Why is efficiency measured in number of operations rather than execution time?

Measuring by time is biased towards better hardware; operations provide a hardware-independent measurement.

18
New cards

What does O(1)O(1) Time Complexity imply?

Constant Time; the task will be completed in a single instruction regardless of the size of the data set.

19
New cards

What are the six most common Time Complexity Equations mentioned in the lecture?

O(1)O(1), O(n)O(n), O(ln(n))O(\ln(n)), O(nln(n))O(n \ln(n)), O(n2)O(n^2), and O(2n)O(2^n).

20
New cards

Which two Time Complexity Equations are described as 'very bad' and 'exponential in structure'?

O(n2)O(n^2) and O(2n)O(2^n).