SlideShare une entreprise Scribd logo
1  sur  70
 
Overview ,[object Object],[object Object],[object Object],Slide 18-
18.1 Iterators
Iterators ,[object Object],[object Object],[object Object],[object Object],Slide 18-
Using Declarations ,[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Iterator Basics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Basic Iterator Operations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
More Iterator Operations ,[object Object],[object Object],[object Object],[object Object],Slide 18-  Display 18.1
Kinds of Iterators ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-  Display 18.2 (1-2)
Constant and Mutable Iterators ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Reverse Iterators ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-  Display 18.3 (1-2)
Other Kinds of Iterators ,[object Object],[object Object],[object Object],Slide 18-
18.2 Containers
Containers  ,[object Object],[object Object],[object Object],[object Object],Slide 18-
Sequential Containers ,[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-  Display 18.4 Display 18.5
Common Container Members ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
More Common Container Members ,[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
More Common Container Members ,[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
More Common Container Members ,[object Object],[object Object],[object Object],[object Object],Slide 18-
PITFALL :  Iterators and Removing Elements ,[object Object],[object Object],[object Object],[object Object],Slide 18-
Operation Support Slide 18-  (X)  Indicates this operation is significantly slower. Display 18.6 Operation Function vector List deque Insert at front push_front(e) - X  X Insert at back push_back(e)  X X  X Delete at front pop_front( ) - X X Delete at back pop_back( ) X X X Insert in middle insert(e) (X) X (X) Delete in middle erase(iter )  (X) X (X) Sort sort( )  X - X
The Container Adapters  st ack  and  queue ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Container Adapter  stack ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
stack   Member Functions Slide 18-  Display 18.10 (1-2) Sample Member Functions Member function Returns s.size( ) number of elements in stack s.empty( ) true if no elements in stack else false  s.top( ) reference to top stack member  s.push(elem) void Inserts copy of  elem  on stack top s.pop( ) void function. Removes top of stack. s1  = =  s2 true if sizes same and corresponding pairs of elements are equal, else false
Container Adapter  queue   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
queue  Member Functions Slide 18-  Sample Member Functions Member function Returns q.size( ) number of elements in queue q.empty( ) true if no elements in queue else false  q.front( ) reference to front queue member  q.push(elem) void adds a copy of  elem  at queue rear q.pop( ) void function. Removes front of queue. q1  ==  q2 true if sizes same and corresonding pairs of elements are equal, else false
Associative Containers set and map ,[object Object],[object Object],[object Object],[object Object],Slide 18-
The  set  Associative Container ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
set  Member Functions Slide 18-  Display 18.12 function Returns s.size( ) number of elements in set s.empty( ) true if no elements in set else false  s.insert(el) Insert  elem  in set. No effect if  el  is a member  s.erase(itr) Erase element to which  itr  refers  s.erase(el) Erase element  el  from set. No effect if  el  is not a member s.find(el) Mutable iterator to location of  el  in set if present, else returns s.end( ) s1  ==  s2 true if sizes same and corresponding pairs of elements are equal, else false
The  map  associative container ,[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Maps as associative arrays ,[object Object],[object Object],[object Object],Slide 18-  Display 18.14 (1-2)
map  Member Functions Slide 18-  Function Returns m.size( ) number of pairs in the map m.empty( ) true if no pairs are in the map else false  m.insert(el) el  is a pair <key, T> Inserts  el  into map. Returns <iterator, bool>. If successful, bool is true, iterator points to inserted pair. Otherwise bool is false m.erase(key) Erase element with key value  key  from map.  m.find(el) Mutable iterator to location of  el  in map if present, else returns m.end( ) m1  = =  m2 true if maps contain the same pairs, else false m[target] Returns a reference to the map object associated to a key of target.
Efficiency ,[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
18.3 Generic Algorithms
Generic Algorithms  ,[object Object],[object Object],[object Object],Slide 18-
Running Times and Big-O Notation ,[object Object],[object Object],[object Object],[object Object],Slide 18-
Worst case running time ,[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
An example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Objections ,[object Object],[object Object],[object Object],[object Object],Slide 18-
Big-O Notation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Large Coefficients Do Not Matter ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Some generic terminology ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-  Display 18.16
Container Access Time 1 ,[object Object],[object Object],[object Object],[object Object],Slide 18-
Container Access Time 2 ,[object Object],[object Object],[object Object],Slide 18-
Generic Algorithm Classification ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Nonmodifying Sequence Algorithms ,[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Iter find(Iter first, Iter last,   const T& value); ,[object Object],[object Object],[object Object],[object Object],Slide 18-
More nonmodifying Algorithms ,[object Object],[object Object],[object Object],[object Object],Slide 18-
Container Modifying Algorithms ,[object Object],[object Object],[object Object],[object Object],Slide 18-
Sorting Algorithms ,[object Object],[object Object],[object Object],[object Object],Slide 18-
Chapter Summary 1 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Chapter Summary 2 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Chapter Summary 3 ,[object Object],[object Object],[object Object],[object Object],Slide 18-
Chapter Summary 4 ,[object Object],[object Object],[object Object],[object Object],[object Object],Slide 18-
Chapter Summary 5 ,[object Object],[object Object],[object Object],Slide 18-
Chapter 18 -- End Slide 18-
Display 18.1 Slide 17-  Back Next
Display 18.2 (1/2) Slide 17-  Back Next
Display 18.2 (2/2) Slide 17-  Back Next
Display 18.3 (1/2) Slide 17-  Back Next
Display 18.3 (2/2) Slide 17-  Back Next
Display 18.4 Slide 17-  Back Next
Display 18.5 Slide 17-  Back Next
Display 18.6 Slide 17-  Back Next
Display 18.10 (1/2) Slide 17-  Back Next
Display 18.10 (2/2) Slide 17-  Back Next
Display 18.12 Slide 17-  Back Next
Display 18.14 (1/2) Slide 17-  Back Next
Display 18.14 (2/2) Slide 17-  Back Next
Display 18.16 Slide 17-  Back Next

Contenu connexe

Tendances (20)

STORAGE CLASSES
STORAGE CLASSESSTORAGE CLASSES
STORAGE CLASSES
 
Regular types in C++
Regular types in C++Regular types in C++
Regular types in C++
 
Storage class in C Language
Storage class in C LanguageStorage class in C Language
Storage class in C Language
 
Storage class
Storage classStorage class
Storage class
 
Manipulators
ManipulatorsManipulators
Manipulators
 
Storage classes in C
Storage classes in C Storage classes in C
Storage classes in C
 
11 lec 11 storage class
11 lec 11 storage class11 lec 11 storage class
11 lec 11 storage class
 
Storage classes
Storage classesStorage classes
Storage classes
 
C++ 11 Features
C++ 11 FeaturesC++ 11 Features
C++ 11 Features
 
storage class
storage classstorage class
storage class
 
C++11
C++11C++11
C++11
 
Storage class in c
Storage class in cStorage class in c
Storage class in c
 
Smart Pointers in C++
Smart Pointers in C++Smart Pointers in C++
Smart Pointers in C++
 
Java concepts and questions
Java concepts and questionsJava concepts and questions
Java concepts and questions
 
Stack organization
Stack organizationStack organization
Stack organization
 
C++17 introduction - Meetup @EtixLabs
C++17 introduction - Meetup @EtixLabsC++17 introduction - Meetup @EtixLabs
C++17 introduction - Meetup @EtixLabs
 
Csc1100 lecture06 ch06_pt2
Csc1100 lecture06 ch06_pt2Csc1100 lecture06 ch06_pt2
Csc1100 lecture06 ch06_pt2
 
C Theory
C TheoryC Theory
C Theory
 
C++ theory
C++ theoryC++ theory
C++ theory
 
C++11
C++11C++11
C++11
 

Similaire à Savitch ch 18

Stl Containers
Stl ContainersStl Containers
Stl Containersppd1961
 
queuesArrays.ppt bbbbbbbbbbbbbbbbbbbbbbbbbb
queuesArrays.ppt bbbbbbbbbbbbbbbbbbbbbbbbbbqueuesArrays.ppt bbbbbbbbbbbbbbbbbbbbbbbbbb
queuesArrays.ppt bbbbbbbbbbbbbbbbbbbbbbbbbbRAtna29
 
Please solve the following problem using C++- Thank you Instructions-.docx
Please solve the following problem using C++- Thank you Instructions-.docxPlease solve the following problem using C++- Thank you Instructions-.docx
Please solve the following problem using C++- Thank you Instructions-.docxPeterlqELawrenceb
 
Create a Queue class that implements a queue abstraction. A queue is.docx
Create a Queue class that implements a queue abstraction. A queue is.docxCreate a Queue class that implements a queue abstraction. A queue is.docx
Create a Queue class that implements a queue abstraction. A queue is.docxrajahchelsey
 
Create a Dynamic Array container with this user interface Ge.pdf
Create a Dynamic Array container with this user interface  Ge.pdfCreate a Dynamic Array container with this user interface  Ge.pdf
Create a Dynamic Array container with this user interface Ge.pdfsktambifortune
 
Please the following is the currency class of perious one- class Curre.pdf
Please the following is the currency class of perious one- class Curre.pdfPlease the following is the currency class of perious one- class Curre.pdf
Please the following is the currency class of perious one- class Curre.pdfadmin463580
 
hello- please dont just copy from other answers- the following is the.docx
hello- please dont just copy from other answers- the following is the.docxhello- please dont just copy from other answers- the following is the.docx
hello- please dont just copy from other answers- the following is the.docxIsaac9LjWelchq
 
Lecture11 standard template-library
Lecture11 standard template-libraryLecture11 standard template-library
Lecture11 standard template-libraryHariz Mustafa
 
Data Structure.pdf
Data Structure.pdfData Structure.pdf
Data Structure.pdfMemeMiner
 
01-intro_stacks.ppt
01-intro_stacks.ppt01-intro_stacks.ppt
01-intro_stacks.pptsoniya555961
 
Given the following ADT definition of a stack to use stack .docx
Given the following ADT definition of a stack to use stack .docxGiven the following ADT definition of a stack to use stack .docx
Given the following ADT definition of a stack to use stack .docxshericehewat
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxAbhishek Tirkey
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxGauravPandey43518
 
Algorithms devised for a google interview
Algorithms devised for a google interviewAlgorithms devised for a google interview
Algorithms devised for a google interviewRussell Childs
 
Assg 14 C++ Standard Template Library (STL)(Extra Credit .docx
Assg 14 C++ Standard Template Library (STL)(Extra Credit .docxAssg 14 C++ Standard Template Library (STL)(Extra Credit .docx
Assg 14 C++ Standard Template Library (STL)(Extra Credit .docxfestockton
 
Talk on Standard Template Library
Talk on Standard Template LibraryTalk on Standard Template Library
Talk on Standard Template LibraryAnirudh Raja
 

Similaire à Savitch ch 18 (20)

Stl Containers
Stl ContainersStl Containers
Stl Containers
 
queuesArrays.ppt bbbbbbbbbbbbbbbbbbbbbbbbbb
queuesArrays.ppt bbbbbbbbbbbbbbbbbbbbbbbbbbqueuesArrays.ppt bbbbbbbbbbbbbbbbbbbbbbbbbb
queuesArrays.ppt bbbbbbbbbbbbbbbbbbbbbbbbbb
 
Please solve the following problem using C++- Thank you Instructions-.docx
Please solve the following problem using C++- Thank you Instructions-.docxPlease solve the following problem using C++- Thank you Instructions-.docx
Please solve the following problem using C++- Thank you Instructions-.docx
 
Create a Queue class that implements a queue abstraction. A queue is.docx
Create a Queue class that implements a queue abstraction. A queue is.docxCreate a Queue class that implements a queue abstraction. A queue is.docx
Create a Queue class that implements a queue abstraction. A queue is.docx
 
Create a Dynamic Array container with this user interface Ge.pdf
Create a Dynamic Array container with this user interface  Ge.pdfCreate a Dynamic Array container with this user interface  Ge.pdf
Create a Dynamic Array container with this user interface Ge.pdf
 
Please the following is the currency class of perious one- class Curre.pdf
Please the following is the currency class of perious one- class Curre.pdfPlease the following is the currency class of perious one- class Curre.pdf
Please the following is the currency class of perious one- class Curre.pdf
 
hello- please dont just copy from other answers- the following is the.docx
hello- please dont just copy from other answers- the following is the.docxhello- please dont just copy from other answers- the following is the.docx
hello- please dont just copy from other answers- the following is the.docx
 
STL in C++
STL in C++STL in C++
STL in C++
 
Lecture11 standard template-library
Lecture11 standard template-libraryLecture11 standard template-library
Lecture11 standard template-library
 
Data Structure.pdf
Data Structure.pdfData Structure.pdf
Data Structure.pdf
 
01-intro_stacks.ppt
01-intro_stacks.ppt01-intro_stacks.ppt
01-intro_stacks.ppt
 
Given the following ADT definition of a stack to use stack .docx
Given the following ADT definition of a stack to use stack .docxGiven the following ADT definition of a stack to use stack .docx
Given the following ADT definition of a stack to use stack .docx
 
Data structures
Data structuresData structures
Data structures
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptx
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptx
 
Algorithms devised for a google interview
Algorithms devised for a google interviewAlgorithms devised for a google interview
Algorithms devised for a google interview
 
C chap22
C chap22C chap22
C chap22
 
Assg 14 C++ Standard Template Library (STL)(Extra Credit .docx
Assg 14 C++ Standard Template Library (STL)(Extra Credit .docxAssg 14 C++ Standard Template Library (STL)(Extra Credit .docx
Assg 14 C++ Standard Template Library (STL)(Extra Credit .docx
 
강의자료8
강의자료8강의자료8
강의자료8
 
Talk on Standard Template Library
Talk on Standard Template LibraryTalk on Standard Template Library
Talk on Standard Template Library
 

Plus de Terry Yoast

9781305078444 ppt ch12
9781305078444 ppt ch129781305078444 ppt ch12
9781305078444 ppt ch12Terry Yoast
 
9781305078444 ppt ch11
9781305078444 ppt ch119781305078444 ppt ch11
9781305078444 ppt ch11Terry Yoast
 
9781305078444 ppt ch10
9781305078444 ppt ch109781305078444 ppt ch10
9781305078444 ppt ch10Terry Yoast
 
9781305078444 ppt ch09
9781305078444 ppt ch099781305078444 ppt ch09
9781305078444 ppt ch09Terry Yoast
 
9781305078444 ppt ch08
9781305078444 ppt ch089781305078444 ppt ch08
9781305078444 ppt ch08Terry Yoast
 
9781305078444 ppt ch07
9781305078444 ppt ch079781305078444 ppt ch07
9781305078444 ppt ch07Terry Yoast
 
9781305078444 ppt ch06
9781305078444 ppt ch069781305078444 ppt ch06
9781305078444 ppt ch06Terry Yoast
 
9781305078444 ppt ch05
9781305078444 ppt ch059781305078444 ppt ch05
9781305078444 ppt ch05Terry Yoast
 
9781305078444 ppt ch04
9781305078444 ppt ch049781305078444 ppt ch04
9781305078444 ppt ch04Terry Yoast
 
9781305078444 ppt ch03
9781305078444 ppt ch039781305078444 ppt ch03
9781305078444 ppt ch03Terry Yoast
 
9781305078444 ppt ch02
9781305078444 ppt ch029781305078444 ppt ch02
9781305078444 ppt ch02Terry Yoast
 
9781305078444 ppt ch01
9781305078444 ppt ch019781305078444 ppt ch01
9781305078444 ppt ch01Terry Yoast
 
9781337102087 ppt ch13
9781337102087 ppt ch139781337102087 ppt ch13
9781337102087 ppt ch13Terry Yoast
 
9781337102087 ppt ch18
9781337102087 ppt ch189781337102087 ppt ch18
9781337102087 ppt ch18Terry Yoast
 
9781337102087 ppt ch17
9781337102087 ppt ch179781337102087 ppt ch17
9781337102087 ppt ch17Terry Yoast
 
9781337102087 ppt ch16
9781337102087 ppt ch169781337102087 ppt ch16
9781337102087 ppt ch16Terry Yoast
 
9781337102087 ppt ch15
9781337102087 ppt ch159781337102087 ppt ch15
9781337102087 ppt ch15Terry Yoast
 
9781337102087 ppt ch14
9781337102087 ppt ch149781337102087 ppt ch14
9781337102087 ppt ch14Terry Yoast
 
9781337102087 ppt ch12
9781337102087 ppt ch129781337102087 ppt ch12
9781337102087 ppt ch12Terry Yoast
 
9781337102087 ppt ch11
9781337102087 ppt ch119781337102087 ppt ch11
9781337102087 ppt ch11Terry Yoast
 

Plus de Terry Yoast (20)

9781305078444 ppt ch12
9781305078444 ppt ch129781305078444 ppt ch12
9781305078444 ppt ch12
 
9781305078444 ppt ch11
9781305078444 ppt ch119781305078444 ppt ch11
9781305078444 ppt ch11
 
9781305078444 ppt ch10
9781305078444 ppt ch109781305078444 ppt ch10
9781305078444 ppt ch10
 
9781305078444 ppt ch09
9781305078444 ppt ch099781305078444 ppt ch09
9781305078444 ppt ch09
 
9781305078444 ppt ch08
9781305078444 ppt ch089781305078444 ppt ch08
9781305078444 ppt ch08
 
9781305078444 ppt ch07
9781305078444 ppt ch079781305078444 ppt ch07
9781305078444 ppt ch07
 
9781305078444 ppt ch06
9781305078444 ppt ch069781305078444 ppt ch06
9781305078444 ppt ch06
 
9781305078444 ppt ch05
9781305078444 ppt ch059781305078444 ppt ch05
9781305078444 ppt ch05
 
9781305078444 ppt ch04
9781305078444 ppt ch049781305078444 ppt ch04
9781305078444 ppt ch04
 
9781305078444 ppt ch03
9781305078444 ppt ch039781305078444 ppt ch03
9781305078444 ppt ch03
 
9781305078444 ppt ch02
9781305078444 ppt ch029781305078444 ppt ch02
9781305078444 ppt ch02
 
9781305078444 ppt ch01
9781305078444 ppt ch019781305078444 ppt ch01
9781305078444 ppt ch01
 
9781337102087 ppt ch13
9781337102087 ppt ch139781337102087 ppt ch13
9781337102087 ppt ch13
 
9781337102087 ppt ch18
9781337102087 ppt ch189781337102087 ppt ch18
9781337102087 ppt ch18
 
9781337102087 ppt ch17
9781337102087 ppt ch179781337102087 ppt ch17
9781337102087 ppt ch17
 
9781337102087 ppt ch16
9781337102087 ppt ch169781337102087 ppt ch16
9781337102087 ppt ch16
 
9781337102087 ppt ch15
9781337102087 ppt ch159781337102087 ppt ch15
9781337102087 ppt ch15
 
9781337102087 ppt ch14
9781337102087 ppt ch149781337102087 ppt ch14
9781337102087 ppt ch14
 
9781337102087 ppt ch12
9781337102087 ppt ch129781337102087 ppt ch12
9781337102087 ppt ch12
 
9781337102087 ppt ch11
9781337102087 ppt ch119781337102087 ppt ch11
9781337102087 ppt ch11
 

Dernier

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Dernier (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

Savitch ch 18

  • 1.  
  • 2.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21. Operation Support Slide 18- (X) Indicates this operation is significantly slower. Display 18.6 Operation Function vector List deque Insert at front push_front(e) - X X Insert at back push_back(e) X X X Delete at front pop_front( ) - X X Delete at back pop_back( ) X X X Insert in middle insert(e) (X) X (X) Delete in middle erase(iter ) (X) X (X) Sort sort( ) X - X
  • 22.
  • 23.
  • 24. stack Member Functions Slide 18- Display 18.10 (1-2) Sample Member Functions Member function Returns s.size( ) number of elements in stack s.empty( ) true if no elements in stack else false s.top( ) reference to top stack member s.push(elem) void Inserts copy of elem on stack top s.pop( ) void function. Removes top of stack. s1 = = s2 true if sizes same and corresponding pairs of elements are equal, else false
  • 25.
  • 26. queue Member Functions Slide 18- Sample Member Functions Member function Returns q.size( ) number of elements in queue q.empty( ) true if no elements in queue else false q.front( ) reference to front queue member q.push(elem) void adds a copy of elem at queue rear q.pop( ) void function. Removes front of queue. q1 == q2 true if sizes same and corresonding pairs of elements are equal, else false
  • 27.
  • 28.
  • 29. set Member Functions Slide 18- Display 18.12 function Returns s.size( ) number of elements in set s.empty( ) true if no elements in set else false s.insert(el) Insert elem in set. No effect if el is a member s.erase(itr) Erase element to which itr refers s.erase(el) Erase element el from set. No effect if el is not a member s.find(el) Mutable iterator to location of el in set if present, else returns s.end( ) s1 == s2 true if sizes same and corresponding pairs of elements are equal, else false
  • 30.
  • 31.
  • 32. map Member Functions Slide 18- Function Returns m.size( ) number of pairs in the map m.empty( ) true if no pairs are in the map else false m.insert(el) el is a pair <key, T> Inserts el into map. Returns <iterator, bool>. If successful, bool is true, iterator points to inserted pair. Otherwise bool is false m.erase(key) Erase element with key value key from map. m.find(el) Mutable iterator to location of el in map if present, else returns m.end( ) m1 = = m2 true if maps contain the same pairs, else false m[target] Returns a reference to the map object associated to a key of target.
  • 33.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56. Chapter 18 -- End Slide 18-
  • 57. Display 18.1 Slide 17- Back Next
  • 58. Display 18.2 (1/2) Slide 17- Back Next
  • 59. Display 18.2 (2/2) Slide 17- Back Next
  • 60. Display 18.3 (1/2) Slide 17- Back Next
  • 61. Display 18.3 (2/2) Slide 17- Back Next
  • 62. Display 18.4 Slide 17- Back Next
  • 63. Display 18.5 Slide 17- Back Next
  • 64. Display 18.6 Slide 17- Back Next
  • 65. Display 18.10 (1/2) Slide 17- Back Next
  • 66. Display 18.10 (2/2) Slide 17- Back Next
  • 67. Display 18.12 Slide 17- Back Next
  • 68. Display 18.14 (1/2) Slide 17- Back Next
  • 69. Display 18.14 (2/2) Slide 17- Back Next
  • 70. Display 18.16 Slide 17- Back Next