Different Data Structures

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

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:14 PM on 7/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

19 Terms

1
New cards

collection

  • Root interface for most collections

  • Stores groups of objects

  • Parent of List, Set, and Queue

  • Does NOT include Maps

2
New cards

list

  • Interface

  • Ordered collection

  • Allows duplicates

  • Access by index

Implementations

  • ArrayList

  • LinkedList

  • Vector

3
New cards

set

  • Interface

  • No duplicate elements

  • No index

Implementations

  • HashSet

  • LinkedHashSet

  • TreeSet

4
New cards

queue

  • Interface

  • FIFO (First In First Out)

Implementations

  • LinkedList

  • PriorityQueue

5
New cards

map

  • Interface

  • Stores key-value pairs

  • Keys must be unique

  • NOT part of the Collection interface

Implementations

  • HashMap

  • LinkedHashMap

  • TreeMap

6
New cards

arraylist

  • Class

  • Implements List

  • keeps elemements in order you added

  • Allows duplicates

  • Fast random access

  • Slower insert/remove

7
New cards

linkedlist

  • Class

  • Implements List and Queue

  • Ordered

  • Allows duplicates

  • Fast insertion/removal

  • Slower random access

8
New cards

vector

  • Class

  • Like ArrayList

  • Thread-safe (synchronized)

  • Usually slower than ArrayList

9
New cards

stack

  • Class

  • Extends Vector

  • LIFO

Methods

push()

pop()

peek()

10
New cards

hashset

  • Class

  • Implements Set

  • No duplicates

  • No ordering

  • Fast

11
New cards

linkedhashset

  • Class

  • Implements Set

  • No duplicates

  • Keeps insertion order

12
New cards

treeset

  • Class

  • Implements NavigableSet (which extends SortedSet and Set)

  • No duplicates

  • Automatically sorted

13
New cards

hashmap

  • Class

  • Implements Map

  • Key-value pairs

  • Keys unique

  • No ordering

14
New cards

linkedhashmap

  • Class

  • Implements Map

  • Keeps insertion order

15
New cards

treemap

  • Class

  • Implements NavigableMap (which extends SortedMap and Map)

  • Keys automatically sorted

16
New cards

comparable

  • Interface

  • Defines natural ordering

  • Uses compareTo()

  • comes with the class (default order)

17
New cards

comparator

  • Interface

  • Defines custom ordering

  • Uses compare()

  • compare differently (custom order)

18
New cards

iterator

Used to move through collections.

methods

hasNext()

next()

remove()

19
New cards

collectioons

Utility class with static methods

sort()

shuffle()

reverse()

binarySearch()

max()

min()