CSC 301: Data Structures - Foundational Concepts, Primitive Types, and Arrays

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

1/51

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering course orientation, primitive data types, binary/memory representation, arrays, structures, strings, and fundamental data structures from CSC 301.

52 Terms

1
New cards

Data

Raw facts, figures, symbols, or observations collected and processed by a computer, which by themselves do not provide sufficient meaning until organized or processed.

2
New cards

Information

Data that has been processed, organized, or interpreted to provide meaning and support decision-making.

3
New cards

Data Structure

A particular method of organizing and storing data in a computer so that it can be accessed, modified, and processed efficiently.

4
New cards

Linear Data Structure

A data structure whose elements are organized sequentially, where each element (except boundary elements) has a predecessor and a successor.

5
New cards

Non-linear Data Structure

A data structure whose elements form hierarchical or network-like relationships rather than a single sequence.

6
New cards
<p>Singly Linked List</p>

Singly Linked List

A linear data structure consisting of separate nodes linked logically through pointers, where each node contains data and a link to the next node.

7
New cards
<p>Tree</p>

Tree

A non-linear hierarchical data structure consisting of a root node connected to child nodes through directed edges without cycles.

8
New cards
<p>Graph</p>

Graph

A non-linear data structure consisting of a collection of vertices (nodes) and edges that connect pairs of vertices to model networks.

9
New cards

Static Memory Allocation

A memory allocation approach where the storage capacity and requirements of an object or data structure are determined before or at object creation and remain fixed during its lifetime.

10
New cards

Dynamic Memory Allocation

A memory allocation technique where a program explicitly requests storage during execution (such as with malloc()) and can later release it.

11
New cards

Contiguous Storage

A physical memory arrangement where the elements of a data structure occupy consecutive memory locations, enabling direct O(1)O(1) indexed address calculations.

12
New cards

Linked Storage

A physical memory arrangement where elements are stored in separate nodes connected by pointers or references rather than occupying consecutive locations.

13
New cards

Abstract Data Type (ADT)

A logical specification of a data type that defines the values it can hold and the operations permitted on those values without specifying implementation details.

14
New cards

Stack

A linear abstract data type that manages elements according to the Last-In, First-Out (LIFO) principle, supporting push, pop, and peek operations.

15
New cards

Queue

A linear abstract data type that manages elements according to the First-In, First-Out (FIFO) principle, supporting enqueue and dequeue operations.

16
New cards

Time Complexity

A measure of how the computational work or running time of an algorithm grows as the input size (nn) increases.

17
New cards

Space Complexity

A measure of how the memory requirements of an algorithm grow as the input size (nn) increases.

18
New cards

Array

A collection of homogeneous elements of the same data type stored in contiguous memory locations and accessed by a common name and an index.

19
New cards

Multidimensional Array

An array whose elements are organized across multiple dimensions using two or more indices to represent tables, grids, or higher-dimensional data.

20
New cards

Row-Major Order

The memory layout used in C where elements of a multidimensional array are stored consecutively row by row in memory.

21
New cards

Two-Dimensional Array Address Calculation Formula

The formula used to compute the memory address of element A[i][j]A[i][j] starting at base address BB with row count RR, column count CC, and element size ww: B+(i×C+j)×wB + (i \times C + j) \times w.

22
New cards

Record / Structure

A logical collection of related fields (members) that describe one entity and can contain members of different data types, defined using struct in C.

23
New cards

Arrow Operator (->)

The C operator used to access a member through a pointer to a structure, functioning as shorthand for (*ptr).member.

24
New cards

Structure Padding

Extra, unused bytes inserted between members or at the end of a C structure by the compiler to satisfy hardware alignment requirements.

25
New cards

C String

A sequence of characters stored as an array of char elements terminated by a special null character ('\0').

26
New cards

Null Character ('\0')

A special character with an ASCII value of zero used in C to mark the termination of a string, distinct from the digit character '0'.

27
New cards

strlen()

A C standard library function in that returns the number of characters in a string excluding the terminating null character.

28
New cards

strcpy()

A C standard library function in that copies a source string, including its terminating null character, into a destination array.

29
New cards

strcat()

A C standard library function in that appends a source string to the end of a destination string, overwriting the destination's original null terminator.

30
New cards

strcmp()

A C standard library function in that compares two strings lexicographically, returning 0 if equal, a negative integer if the first precedes the second, or a positive integer if the first follows the second.

31
New cards

strchr()

A C standard library function in that searches for the first occurrence of a specified character in a string and returns a pointer to it, or NULL if not found.

32
New cards

strstr()

A C standard library function in that searches for the first occurrence of a substring in a string and returns a pointer to it, or NULL if not found.

33
New cards

Traversal (Operation)

The basic data structure operation of visiting each element or node systematically to inspect, display, or modify its value.

34
New cards

Linear Search

A search technique that inspects elements sequentially until the target is found or the collection ends, having a worst-case time complexity of O(n)O(n).

35
New cards

Binary Search

A search technique for sorted arrays that repeatedly divides the search interval in half, achieving a worst-case time complexity of O(log⁡n)O(\log n).

36
New cards

Primitive Data Type

A basic data type provided directly by a programming language specifying the kind of value a variable can represent and its permitted operations.

37
New cards

Variable

A named object used by a program to store a value in memory that can be accessed or modified during execution.

38
New cards

Memory Address

A numeric identifier that specifies a unique physical or virtual location in the computer's addressable memory space.

39
New cards

Pointer

A variable that stores the memory address of another object or a function.

40
New cards

Byte

A group of eight bits that serves as the smallest addressable unit of memory in the C language.

41
New cards

ASCII

A standard character encoding scheme that maps characters to numerical codes, such as uppercase 'A' to decimal 6565 (binary 01000001201000001_2).

42
New cards
<p>IEEE 754 Single-Precision Format</p>

IEEE 754 Single-Precision Format

A 32-bit32\text{-bit} standard floating-point representation consisting of a 1-bit1\text{-bit} sign, an 8-bit8\text{-bit} exponent, and a 23-bit23\text{-bit} fraction (mantissa) field.

43
New cards

Exponent Bias (IEEE 754)

A fixed offset of 127127 added to the true power-of-two exponent in IEEE 754 single-precision format to allow positive and negative exponents to be stored as unsigned integers.

44
New cards

Normalized Binary Representation

A floating-point representation adjusted so that exactly one non-zero bit (11) precedes the binary point, leaving the following bits to be stored in the fraction field while the leading 11 is implied.

45
New cards
<p>Process Address Space Organization</p>

Process Address Space Organization

The memory model of a running program divided into functional areas: stack, heap, data segment, BSS segment, and text segment.

46
New cards

Call Stack

A program memory region managed automatically that stores function call frames, parameters, local variables with automatic storage duration, and return addresses, typically growing downward.

47
New cards

Heap

A memory region reserved for dynamically allocated memory requested at runtime (e.g., via malloc()), managed manually by the programmer, and typically growing upward.

48
New cards

Data Segment

The region of process memory that stores initialized global and static variables, which exist for the lifetime of the program.

49
New cards

BSS Segment

The region of process memory that stores uninitialized global and static variables, which are initialized to zero when the program starts.

50
New cards

Text Segment

The read-only segment of memory loaded from the executable file that contains the program's compiled machine instructions.

51
New cards

Static Variable

A variable declared with the static keyword whose lifetime extends across the entire program execution and retains its value between function calls.

52
New cards

Endianness

The system-dependent byte-ordering convention for multi-byte values in memory, where little-endian stores the least significant byte at the lowest address and big-endian stores the most significant byte first.