/Cpp-Memory-Management-Chatbot

Optimized the Chatbot code using modern C++ memory management techniques such as smart pointers and move semantics.This chatbot answers questions about C++!

Primary LanguageC++

CPPND: 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.

In this project I optimized the ChatBot program from a memory management perspective. There are a total of five specific tasks to I completed, which are detailed below.

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.