Mind map
Data Structures
Map content
Data Structures
Lists
- Declaration: thisList = [ ]
- Elements in a list can be Ints, String, Tuple, Boolean or Another List
- Accessing: thisList | Accessing Element: thisList[ _ ]
- List is Ordered
- Lists are Mutable (Can Make Changes)
- Adding Elements: thisList.append( _ )
- Removing Elements: thisList.pop()
- Adding Elements: thisList.append( _ )
- Lists are Mutable (Can Make Changes)
- List is Ordered
- Accessing: thisList | Accessing Element: thisList[ _ ]
- Elements in a list can be Ints, String, Tuple, Boolean or Another List
- Declaration: thisList = [ ]
Tuples
- Declaration: thisTuple = ( )
- Data Types in Tuple can be Ints, Strings, or Booleans
- Accessing: thisTuple | Accessing Element: thisTuple[ _ ]
- Tuple is Ordered
- Tuple is Immutable (Cannot be Updated / Add Elements)
- Tuple is Ordered
- Accessing: thisTuple | Accessing Element: thisTuple[ _ ]
- Data Types in Tuple can be Ints, Strings, or Booleans
- Declaration: thisTuple = ( )
Sets
- Declaration: thisSet = { }
- Data Types in Sets can be Ints, Strings and Boolean, but CAN'T be Repeated
- Accessing: thisSet
- Sets are Unordered -> Cannot Access Specific Element
- Sets are Mutable
- Adding Elements: thisSet.add( _ )
- Removing Elements: thisSet.remove( _ )
- Adding Elements: thisSet.add( _ )
- Sets are Mutable
- Sets are Unordered -> Cannot Access Specific Element
- Accessing: thisSet
- Data Types in Sets can be Ints, Strings and Boolean, but CAN'T be Repeated
- Declaration: thisSet = { }
Dictionaries
- Declaration: thisDict{ "key" : value }
- Data Types in Dictionaries can be Ints, Strings, Boolean and List
- Accessing: thisDict | Accessing Element thisDict["key]
- Dictionaries are Ordered
- Dictionaries are Mutable, but Keys cannot be Duplicated
- Adding Elements: thisDict["key"] = value
- Removing Elements: del thisDict["key"]
- Adding Elements: thisDict["key"] = value
- Dictionaries are Mutable, but Keys cannot be Duplicated
- Dictionaries are Ordered
- Accessing: thisDict | Accessing Element thisDict["key]
- Data Types in Dictionaries can be Ints, Strings, Boolean and List
- Declaration: thisDict{ "key" : value }
Information
- Description
- Computer Science Mind Map on Data Structures, created by Eric Chao on 13/09/2021.
- Created by
- Eric Chao
- Views
- 2
- Rating