Skip to main content

Data Structures and Algorithm Documentation

by Hongnan Gao Oct, 2022

This is the documentation for various data structures and algorithms concepts.

Workflow

Installation

~/gaohn                  $ git clone https://github.com/gao-hongnan/gaohn-dsa.git gaohn-dsa
~/gaohn                  $ cd gaohn-dsa
~/gaohn/gaohn-dsa        $ python -m venv <venv_name> && <venv_name>\Scripts\activate
~/gaohn/gaohn-dsa (venv) $ python -m pip install --upgrade pip setuptools wheel
~/gaohn/gaohn-dsa (venv) $ pip install -r requirements.txt
~/gaohn/gaohn-dsa (venv) $ pip install myst-nb==0.16.0

The reason for manual install of myst-nb==0.16.0 is because it is not in sync with the current jupyterbook version, I updated this feature to be able to show line numbers in code cells.

Setting up Continuous Integration

~/gaohn/gaohn-dsa (venv) $ mkdir -p .github/workflows .github/actions
~/gaohn/gaohn-dsa (venv) $ curl -o .github/actions/continuous-integration/action.yaml \
    https://raw.githubusercontent.com/gao-hongnan/common-utils/main/.github/actions/continuous-integration/template.yaml
~/gaohn/gaohn-dsa (venv) $ curl -o .github/workflows/continuous_integration.yaml \
    https://raw.githubusercontent.com/gao-hongnan/common-utils/main/.github/workflows/continuous_integration.yaml

Change the environment variable PACKAGES_TO_CHECK to dsa in .github/workflows/continuous_integration.yaml.

Building the book

After cloning, you can edit the books source files located in the content/ directory.

You run

~/gaohn (venv) $ jupyter-book build content/

to build the book, and

~/gaohn (venv) $ jupyter-book clean content/

to clean the build files.

A fully-rendered HTML version of the book will be built in content/_build/html/.

MyST NB

See config documentation.

Release files for gaohn-dsa 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gaohn-dsa 0.0.1
File Size Uploaded
gaohn-dsa-0.0.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gaohn-dsa 0.0.1
File Interpreter ABI Platform
gaohn_dsa-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / gaohn-dsa-0.0.1.tar.gz

Download URL gaohn-dsa-0.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f9bf17221d8fb52b55664bfb1c89596782fa9e83c56f231df286f6094a220cc5
BLAKE2b-256 checksum
How to use checksums
76149caa429730203010d5db1596e61aca48535feb8fe2db21bd621de1d01bdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / gaohn_dsa-0.0.1-py3-none-any.whl

Download URL gaohn_dsa-0.0.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be2b5b97c27961d51bd3b42e4645d3108e5c5e0d39220c50c009ec17ab0d53bf
BLAKE2b-256 checksum
How to use checksums
6100df7e772c3e3af034c9b75c1353a1a47e153c86620ec0646d12a41f609c10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page