Introduction
Module 9:8: AdvancedOOP Graph(SOLID, Encapsulation, Abstraction)
Author:Created by: YP
Learning Objectives
After completing this module, students are expected to be able to:
- Explain the basic
conceptsconcept ofGraphOOP (includingObject-Orientedadjacency list and adjacency matrix representation)Programming). ImplementDifferentiategraph traversal usingbetweenDFS (Depth First Search)Encapsulation andBFS (Breadth First Search).Understand and implement theShortest Path algorithm (Dijkstra)Abstraction.- Implement
MinimumAbstractSpanning Tree (MST)algorithms:PrimClass andKruskalPure Virtual Function in C++. CompareApplythe efficiency of manual graph algorithms with STL libraries such asfundamentalpriority_queueSOLID principles (Single Responsibility Principle and Liskov Substitution Principle).- Build a simple
disjointmenu-basedsetprogramunionusing(DSU).inheritance.