How tinletrongcs/dsa_assignments works
Graph and Topological Sort Module
• Files: AbstractGraph.h, DGraphModel.h, UGraphModel.h, TopoSorter.h
• Purpose: Implement different graph models (perhaps directed and undirected) along with graph traversal and sorting (topological sort).
Machine Learning / Neural Network Module
• Files: MLPClassifier.cpp, IModel.cpp, Layer.cpp, FCLayer.cpp, along with activation function implementations (ReLU.cpp, Sigmoid.cpp, Tanh.cpp, Softmax.cpp) and loss functions (CrossEntropy.cpp)
• Purpose: These files indicate a simple neural network (likely a multilayer perceptron classifier) implementation. Layers (including fully connected ones) and activation functions are implemented explicitly.
• “Model Interface” and “MLPClassifier” for overall model management.
• “Layer” and “FCLayer” blocks to represent different abstraction levels in the NN.
• Activation function blocks (ReLU, Sigmoid, Tanh, Softmax) and a “Loss Function” (CrossEntropy) connected to the network layers.
Core Data Structures and Utilities Module
• Files: DLinkedList.h, DLinkedListSE.h, Queue.h, Stack.h, Heap.h, XArrayList.h, xMap.h, xtensor_lib.h
• Purpose: Provide custom implementations of fundamental data structures and possibly even a rudimentary tensor library (xtensor_lib.h) for handling multi-dimensional data arrays.
• Also present are dataset.h and dataloader.h, which likely support input processing (possibly feeding data into the ML module).
• For the Neural Network, indicate the flow from “Input Data” (coming from Dataset/Dataloader) through the network layers to output predictions and compute loss.
• Algorithm/Processing components (e.g., MLPClassifier, TopoSorter)
• Data structure implementations (e.g., DLinkedList, Queue, Stack)
• Utility or supporting components (e.g., Dataset / Dataloader, Tensor Utilities)
• Textual annotations where appropriate, for instance:
• “Graph Module” uses classical graph algorithms to support assignment objectives.
• “Neural Network Module” implements a simple MLP with built-in activation and loss functions.
• “Data Structures Module” provides all the underlying data management mechanisms required for algorithm implementation.
– For this project’s type (an educational repository with multiple assignments), detail every component because the design is intended to demonstrate understanding of both algorithm implementation and component reuse.
– If desired, include a “Main” section (even if implicit) to indicate how a driver function or test harness might integrate these modules during execution.