AL101 - MIDTERM

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

1/39

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:01 PM on 5/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

40 Terms

1
New cards

a simplification of reality. We use them because real-world systems are often too complex, expensive, or time-consuming to build or manipulate directly.

Mathematical Models

2
New cards

THREE MAIN TYPES OF MODELS

  • iconic

  • analog

  • mathematical


3
New cards

This is a physical replica of a system, usually built on a different scale (smaller or larger) than the original.

3D Examples: Scaled-down versions of airplanes, cars, or bridges.

2D Examples: Photographs

Iconic Model

4
New cards

These do not look like the real system at all, but they behave like it. They are more abstract than iconic models.

  • Illustrations, graphs, tables, etc.


Analog Model

5
New cards

Otherwise known as “The Equation”, is the most abstract type, using symbols and math to represent relationships. Management science relies heavily on these

Mathematical Model

6
New cards

What Makes a Model “Good”

  • Simple & Understandable

  • Reasonable

  • Easy to Maintain

  • Adaptive

  • Complete


7
New cards

ADVANTAGES OF MATHEMATICAL MODEL

  • Cost-Efficiency

  • Identifies Gaps

  • Speed

  • Decision Tool



8
New cards

DISADVANTAGES OF MATHEMATICAL MODELS

  • Oversimplification

  • Human Error

  • High Initial Cost


9
New cards

Sample values arranged in ascending order.

Order Statistics

10
New cards

Order Statistics is a fundamental part of this subject because:

  • Selection Algorithms

  • Extreme Value Analysis

  • Data Partitioning


11
New cards

The middle value of an ordered set.

Different formulas for even vs. odd sample sizes (n).

Median

12
New cards

This is the total distance between the maximum and the minimum

Range (X(n) - X(1))

13
New cards

This is the difference between the third and first quartiles

Interquartile Range (Q3 - Q1)

14
New cards

A well-known searching technique used to map data of arbitrary size to fixed- size values (indices).

Hashing

15
New cards

identifier of data

Hash function

16
New cards

This occurs when the hash function generates the same index (bucket) for two different keys.

Collision

17
New cards

A method where all keys are stored directly inside the hash table. Unlike Separate Chaining, no key is stored outside the table.

Open Addressing (Closed Hashing)

18
New cards

The system calculates the hash value to find an index.

Insertion

19
New cards

If that spot is occupied, it performs _—checking other buckets one by one—until an empty spot is found.

Probing

20
New cards

The system checks the calculated hash index first. If the key isn’t there, it continues checking subsequent buckets until the key is found or an empty bucket is encountered (which means the key doesn’t exist).

Searching

21
New cards

When a key is removed, the bucket is marked as “deleted”. During future searches, the system will not stop at a “deleted” marker; it keeps looking until it finds the key or a truly empty spot.

Deletion

22
New cards

CORE OPERATIONS IN OPEN ADDRESSING

Insertion

Searching

Deletion

23
New cards

If a collision occurs, the system simply checks the very next bucket (index + 1). It is easy to calculate but can lead to clustering, where many elements group together in one area of the table.

Linear Probing

24
New cards

Instead of checking the next spot, the system “jumps” using a squared interval (e.g., ) to find an empty bucket. This reduces primary clustering.

Quadratic Probing

25
New cards

This uses a second hash function to determine the ”jump” size. It is the most efficient at avoiding clustering but requires more computation time.

Double Hashing

26
New cards

PROBING TECHNIQUES

Linear Probing

Quadratic Probing

Double Hashing

27
New cards

a non-linear data structure used to represent data with a hierarchical relationship. Unlike Arrays or Linked Lists, which store data in a linear sequence, it organizes data in levels, starting from a single point and branching outwards.

Tree

28
New cards

The top-most node of the tree. It is the only node that has no parent.

Root

29
New cards

The connecting link or line between two nodes. It represents the relationship between them.

Edge

30
New cards

In any connected pair of nodes, the node physically “above” is the Parent, and the node ”below” is the Child.

Parent and Child

31
New cards

A node that does not have any children. These are the “end-points” of the tree.

Leaf Node

32
New cards

Nodes that belong to the same parent.

Siblings

33
New cards

Every child node can be seen as the root of its own smaller tree, consisting of all its descendants.

Subtree

34
New cards

PARTS OF A TREE

  • Root

  • Edge

  • Parent and Child

  • Leaf Node

  • Siblings

  • Subtree


35
New cards

a specialized version of a general tree. The defining rule is the ”Degree of Two”: no node is allowed to have more than two child nodes. These children are specifically referred to as the Left Child and the Right Child.

Binary Tree

36
New cards

A tree where every node has either zero or two children. No node has just “one” child.

Full Binary Tree

37
New cards

A tree that is completely filled at every level, except possibly the last level, which must be filled from left to right. This is crucial for storing trees in arrays efficiently. Since trees are non-linear, we cannot just read them from start to finish like a list. We use Traversals to visit every node in a systematic order.

Complete Binary Tree

38
New cards

In this method, the root is processed first. It is often used to create a copy of the tree or to get a prefix expression from an expression tree.

Preorder Traversal (Root  Left  Right)

39
New cards

In this method, the root is processed between the subtrees.

Inorder Traversal (Left  Root  Right)

40
New cards

In this method, the root is processed last. This is commonly used to delete a tree (since you must delete the children before the parent) or to evaluate postfix expressions.

Postorder Traversal (Left  Right  Root)