Skip to content

simonsayspark/CS2341

 
 

Repository files navigation

Code Examples for Data Structures

Textbook: Data Structures and Algorithm Analysis in C++ (Fourth Edition), by Mark Allen Weiss. Source Code by Mark Allen Weiss can be found here.

Book Chapter Lecture Notes and Code
1 Programming
2 Algorithm Analysis
3 Lists, Stacks, and Queues
4 Trees
5 Hashing
6 Heaps
9 Graphs

Course material and assignments for CS 2341 at SMU can be found on Canvas.

Required Tools

Installation on your own computer

  • Install Visual Studio Code (VS Code)
  • Install compilers and cmake:
    • On Linux you most likely have already everything you need installed (gcc, cmake, valgrind). If not, then install the missing packages using your package manager.
    • On Windows you will need to also install WSL and use the VS Code Remote WSL (here is a video) this process will install gcc. You also need to install cmake and valgrind in the WSL shell using sudo apt get install. You will always need to open folders by clicking on the green >< at the bottom left corner of VS Code and select open folder in WSL.
    • On MacOS you need to also install clang on MacOS and set up the path using shell command. You also need to install cMake.
  • Install git and the VS Code integration.
  • Install VS Code extensions for C++ and CMake. The extensions are: C/C++, C/C++ Extension Pack, CMake Tools. VS Code will prompt you to install these. Make sure that you install the extensions after you have the software above installed or it might not find it.

Using VS Code With a Remote Linux Server

If you have access to a Linux host server with all development tools installed (see genuse servers for SMU students) then you can install only VS Code and the VS Code extension Remote - SSH. You can then connect to the host by clicking on the green >< at the bottom left corner of VS Code (details).

HOWTOs

License

CC BY-SA 4.0

All code and documents in this repository are provided under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License.

About

Code Examples for Data Structures with C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.9%
  • CMake 1.1%