Python Arrays, Algorithms, and Sorting Methods

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

1/40

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering Python array operations, type codes, asymptotic notations, divide and conquer strategies, and common sorting algorithms.

Last updated 11:04 AM on 9/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

41 Terms

1
New cards

Array (Python)

A data structure that can hold more than one value at a time, representing a collection or ordered series of items.

2
New cards

Element

Each individual item stored inside an array, which possesses a numerical index corresponding to its location starting at index zero.

3
New cards

Type Code

Symbols used to define the exact data type and memory size of items stored within an array.

<p>Symbols used to define the exact data type and memory size of items stored within an array.</p>
4
New cards

1 Byte

A memory unit consisting of 8 bits that can store up to 256 elements.

5
New cards

2 Bytes

A memory unit consisting of 16 bits that can store up to 65,536 elements.

6
New cards

Signed

A numeric data type representation that permits both negative and positive values.

7
New cards

Unsigned

A numeric data type representation that permits positive values and zero only.

8
New cards

Floating point

A data type representation that includes decimals or fractions.

9
New cards

Typecode 'b'

Represents a signed integer of size 1 byte.

10
New cards

Typecode 'B'

Represents an unsigned integer of size 1 byte.

11
New cards

Typecode 'c'

Represents a character of size 1 byte.

12
New cards

Typecode 'i'

Represents a signed integer of size 2 bytes.

13
New cards

Typecode 'I'

Represents an unsigned integer of size 2 bytes.

14
New cards

Typecode 'f'

Represents a floating point of size 4 bytes.

15
New cards

Typecode 'd'

Represents a floating point of size 8 bytes.

16
New cards

len()

A built-in function used to determine the total number of elements present in an array.

17
New cards

append()

An array operation method used to add a single element to the end of an array.

18
New cards

extend()

An array operation method used to add more than one element to the end of an array.

19
New cards

insert()

An array operation method used to place an element at a specified index position.

20
New cards

pop()

An array operation method used to remove an element from an array while returning its value.

21
New cards

remove()

An array operation method used to permanently delete an element from an array without returning it.

22
New cards

Array Concatenation

The process of combining or joining two separate arrays together into one larger array.

23
New cards

Array Slicing

The operation of taking or extracting a specific portion or range of an array using the colon (:) syntax.

24
New cards

For loop (Array)

A loop structure used to iterate over the items of an array for a specific number of times.

25
New cards

While loop (Array)

A loop structure that continues repeating over an array until a specified condition is satisfied.

26
New cards

NumPy

A Python package used for advanced array operations, installed using PIP.

27
New cards

Algorithm

A well-defined computational procedure that takes some value or set of values as input and produces a corresponding value or set of values as output.

28
New cards

Asymptotic Notations

Mathematical descriptions representing the order of growth of an algorithm's running time to evaluate its performance and efficiency.

29
New cards

THETA (ฮ˜\Theta-notation)

Represents the average case and upper bound of an algorithm, guaranteeing the program will never exceed this time limit.

30
New cards

BIG-O (O-notation)

Represents the worst case and lower bound of an algorithm, describing the absolute fastest the program can run under optimal conditions.

31
New cards

OMEGA (ฮฉ\Omega-notation)

Represents the best case and exact rate of growth, utilized when best-case and worst-case performance grow at the identical rate.

32
New cards

Divide and Conquer

An algorithmic problem-solving strategy that breaks a complex problem down into smaller, identical sub-problems until they are simple enough to solve directly.

33
New cards

Divide Step

The first step of Divide and Conquer, where the main problem is broken down into smaller sub-problems.

34
New cards

Conquer Step

The second step of Divide and Conquer, where sub-problems are solved recursively or directly if small enough.

35
New cards

Combine Step

The final step of Divide and Conquer, where sub-problem solutions are merged together to obtain the final solution.

36
New cards

Recursion

A programming method wherein a function invokes itself in order to solve a problem.

37
New cards

Selection Sort

A sorting technique that finds the minimum element in the unsorted section of a list and swaps it with the element at the designated position.

38
New cards

Insertion Sort

A sorting technique where items are systematically inserted into a list and immediately organized in proper sequential order.

39
New cards

Bubble Sort

A sorting technique where adjacent elements are iteratively compared and swapped one at a time.

40
New cards
<p>Merge Sort</p>

Merge Sort

A divide-and-conquer sorting technique that splits an array into two, then four, then eight parts before arranging and merging them back together.

41
New cards
<p>Heap Sort</p>

Heap Sort

A tree-structured sorting algorithm featuring an ancestor root node where each node has up to 2 children, sorted by exchanging values with parent nodes.