# data-structure **Repository Path**: mao_cat/data-structure ## Basic Information - **Project Name**: data-structure - **Description**: 数据结构学习 - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2023-11-21 - **Last Updated**: 2023-12-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # data-structure #### 介绍 数据结构学习 #### 软件架构 ```shell . ├── algorithm │ └── sort.h ├── bin ├── build ├── CMakeLists.txt ├── ds ├── graph │ └── graph.md ├── hash │ └── hash.md ├── include │ ├── list │ │ ├── Link2List.h │ │ ├── LinkList.h │ │ ├── RankList.h │ │ ├── StaticLink2List.h │ │ └── StaticLinkList.h │ ├── queue │ │ ├── LinkQueue.h │ │ └── Queue.h │ ├── stack │ │ ├── LinkStack.h │ │ └── Stack.h │ ├── tools │ │ ├── Common.h │ │ └── Iterator.h │ └── tree │ ├── BinaryTree.h │ ├── BSTree.h │ ├── Heap.h │ ├── LinkBinaryTree.h │ └── LinkBSTree.h ├── LICENSE ├── others │ └── other.txt ├── README.en.md ├── README.md └── tests ├── list │ ├── CMakeLists.txt │ ├── test.cpp │ ├── test_link2list.cpp │ ├── test_linklist.cpp │ ├── test_ranklist.cpp │ ├── test_staticlink2list.cpp │ └── test_staticlinklist.cpp ├── queue │ ├── CMakeLists.txt │ ├── test_linkqueue.cpp │ └── test_queue.cpp ├── stack │ ├── CMakeLists.txt │ ├── test_linkstack.cpp │ └── test_stack.cpp └── tree ├── CMakeLists.txt ├── test_binarytree.cpp ├── test_heap.cpp ├── test_linkbinarytree.cpp └── tree.md ``` #### 安装教程 工具依赖:CMake构建 1. 下载代码: `git clone https://gitee.com/mao_cat/data-structure.git` 2. 进入build目录并构建CMake: `cd build && cmake ..` 3. 生成可执行程序(在build目录输入命令,程序会在bin目录生成): `make` 也可以根据ds脚本批量执行命令,ds是data-structure的缩写,下面介绍使用脚本快速构建 0. **必须保证当前路径为:data-structure** 1. cmake构建:`./ds cbuild` 2. 生成可执行程序:`./ds ccompile` 3. 清除build和bin中的内容:`./ds cclear` 4. 运行所有生成的程序,将程序的输出写入bin/output.txt中:`./ds crun`,用于检验是否出错。 #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)