Data Structures and Algorithm Design

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/33

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

34 Terms

1
New cards

Abstract class

A class that cannot be instantiated on its own and is meant to be subclassed. It can contain abstract methods that must be implemented by its subclasses.

2
New cards

Algorithm

a set of step-by-step instructions designed to perform a specific task or solve a particular problem, often used in programming and computational processes.

3
New cards

Array

a collection of elements identified by index or key, typically of the same data type, allowing for efficient access and manipulation of data.

4
New cards

Linked list

a linear collection of data elements, where each element points to the next, allowing for dynamic memory allocation and efficient insertions and deletions.

5
New cards

Stack

a data structure that follows the Last In First Out (LIFO) principle, where elements are added and removed from the same end, often referred to as the top.

6
New cards

Wrapper class

a class that encapsulates a primitive data type into an object, allowing methods to be used on it and enabling the use of the type in collection frameworks.

7
New cards

Comparable

A marker interface in Java used to define the natural ordering of objects, allowing them to be compared to each other.

8
New cards

Inheritance

A fundamental concept in object-oriented programming that allows a class to inherit properties and methods from another class, promoting code reusability and hierarchical relationships.

9
New cards

Interface

A reference type in Java that defines a contract of methods that implementing classes must provide, supporting multiple inheritance.

10
New cards

Generic

A programming construct that allows developers to write a class, interface, or method with a placeholder for types, enabling type-safe code and code reuse.

11
New cards

Static

A keyword in programming that indicates a member variable or method belongs to the class rather than any instance of the class, allowing access without creating an object.

12
New cards

Set

A collection of distinct elements or objects, written using braces {}.

13
New cards

Element

Single member of a set

14
New cards

Subset

A set whose elements are all contained within another set.

15
New cards

Union (A ∪ B)

A set containing all elements in either A or B.

16
New cards

Intersection (A ∩ B)

A set containing elements that appear in both A and B.

17
New cards

Difference (A − B)

Elements that are in A but not B.

18
New cards

Complement (Ā)

All elements not in A (with respect to a universal set).

19
New cards

Relation

A set of ordered pairs showing how elements of one set relate to another.

20
New cards

Function

A special relation where each input has exactly one output.

21
New cards

Reflexive Relation

Every element is related to itself.

22
New cards

Symmetric Relation

If a is related to b, then b is related to a.

23
New cards

Transitive Relation

If a is related to b and b to c, then a is related to c.

24
New cards

Equivalence Relation

A relation that is reflexive, symmetric, and transitive.

25
New cards

Summation (Σ)

Symbol for adding a sequence of numbers.

26
New cards

Product (Π)

Symbol for multiplying a sequence of numbers.

27
New cards

Floor (⌊x⌋)

The greatest integer ≤ x.

28
New cards

Ceiling (⌈x⌉)

The smallest integer ≥ x.

29
New cards

Mod (modulus)

The remainder after integer division.

30
New cards

Index

The position of an element within a sequence or array.

31
New cards

Recursion

A programming technique in which a function calls itself to solve smaller instances of a problem. It is often used to break down complex problems into simpler ones.

32
New cards

Recursive Call

The function invocation inside itself.

33
New cards

Stack Frame

Memory block created for each function call containing local variables and return address.

34
New cards

Big O Notation

Describes the upper bound of an algorithm's time or space complexity in the worst-case scenario, helping to analyze performance.