C++ STL: sets and maps
C++ STL: sets and maps
Data and File Structures Laboratory
DFS Lab (ISI)
C++ STL: sets and maps
1 / 11
C++ containers, sets, maps
Container: data type for operating on a group of elements Example: array Sets: container for distinct, ordered data stored in a balanced binary tree structure supporting fast search Maps: associative container for key, value pairs (where keys are distinct and ordered), stored in a balanced binary tree structure
DFS Lab (ISI)
C++ STL: sets and maps
2 / 11
Supported operations on sets, maps
Add / remove element (if not already in the container) Get count of elements Check membership Addition, removal, membership check guaranteed to take O(log N ) time
DFS Lab (ISI)
C++ STL: sets and maps
3 / 11
Programs using sets
set s;
for(int i = 1; i ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- cold and flu maps 2018
- stl school districts
- high c reactive protein and joint pain
- c reactive protein and inflammation
- healthcare data sets and standards
- c reactive protein and cancer
- sets union intersection and complement
- sets and venn diagram worksheets
- sets and set operations calculator
- moon rises and sets times
- calculator 3 sets unions and intersection
- union and intersection of sets calculator