Skip to content

Chatbot application using modern memory management techniques: smart pointers, the rule of five, move semantics

Notifications You must be signed in to change notification settings

manankshastri/MemoryManagementChatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Management Chatbot

The ChatBot code creates a dialogue where users can ask questions about some aspects of memory management in C++. After the knowledge base of the chatbot has been loaded from a text file, a knowledge graph representation is created in computer memory, where chatbot answers represent the graph nodes and user queries represent the graph edges. After a user query has been sent to the chatbot, the Levenshtein distance is used to identify the most probable answer. The code is fully functional as-is and uses raw pointers to represent the knowledge graph and interconnections between objects throughout the project.

In this project, we will analyze and modify the program. Although the program can be executed and works as intended, there are currently no smart pointers, no move semantics, and not much thought has been given to ownership or memory allocation. The goal is to optimize the ChatBot program from a memory management perspective.

Dependencies for Running Locally

Basic Build Instructions

  1. Clone this repo.
  2. Make a build directory in the top level directory: mkdir build && cd build
  3. Compile: cmake .. && make
  4. Run it: ./membot.

About

Chatbot application using modern memory management techniques: smart pointers, the rule of five, move semantics

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published