{"id":22014124,"url":"https://github.com/laqudee/rust-algorithms-data-structures","last_synced_at":"2025-10-07T03:06:18.367Z","repository":{"id":163983976,"uuid":"638935159","full_name":"laqudee/rust-algorithms-data-structures","owner":"laqudee","description":"Rust Algorithms And Data Structures","archived":false,"fork":false,"pushed_at":"2023-05-24T08:08:02.000Z","size":883,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T09:05:14.172Z","etag":null,"topics":["algorithms","data-structures","rust","search-algorithm","sorting-algorithms"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laqudee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-10T12:17:43.000Z","updated_at":"2024-05-29T03:03:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"4131e514-001d-4594-b9e2-e42d82b97132","html_url":"https://github.com/laqudee/rust-algorithms-data-structures","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laqudee/rust-algorithms-data-structures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laqudee%2Frust-algorithms-data-structures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laqudee%2Frust-algorithms-data-structures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laqudee%2Frust-algorithms-data-structures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laqudee%2Frust-algorithms-data-structures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laqudee","download_url":"https://codeload.github.com/laqudee/rust-algorithms-data-structures/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laqudee%2Frust-algorithms-data-structures/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278712710,"owners_count":26032742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithms","data-structures","rust","search-algorithm","sorting-algorithms"],"created_at":"2024-11-30T03:26:25.189Z","updated_at":"2025-10-07T03:06:18.331Z","avatar_url":"https://github.com/laqudee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Algorithms And Data Structures\n\n- 能使用Rust实现完整的程序，包括使用Cargo、rustc、test等\n- 能使用基本的数据类型和结构，包括结构体、枚举、循环、匹配\n- 能使用Rust范型、生命周期、所有权、指针、unsafe、宏、async\n- 能使用内置库crate、外部库，设置Cargo.toml\n\n## 目录\n\n- 计算机科学，计算机科学定义和概念\n- 算法分析，理解程序执行时间和空间性能的方法\n- 基本数据结构，计算机是一个线性系统，内存也是，基本数据结构保存在内存中。数组，切片，Vec，栈和队列\n- 递归\n- 查找\n- 排序\n  - ![sort](./media/sort.png)\n- 树，在线性系统上，通过适当的方法也能构造出非线性的数据结构，例如树，通过指针或者饮用用来指向子树。二叉树、二叉搜索树、平衡二叉树、八叉树，B树、B+树、红黑树。\n  - ![tree order](./media/tree_order.png)\n  - ![tree](./media/tree.png)\n- 图，邻接表，邻接矩阵等\n  - 广度优先搜索\n  - 深度优先搜索\n  - 最短路径算法Dijkstra\n- 实战，距离算法、字典树、过滤器、缓存淘汰算法、一致性哈希算法，区块链\n    - 编辑距离\n    - 汉明距离\n\n- 区块链及比特币原理\n\n- 区块链技术是利用链式数据结构来验证与存储数据、利用分布式节点共识算法来生成和更新数据、利用密码学来保证数据传输和访问安全、利用自动化脚本的智能合约来编程和操作数据的一种全新的分布式基础架构和计算范式\n\n- 简单来说，区块链就是去中心化的分布式账本\n\n- 区块链是一个分布式的交易系统：\n  - 区块\n  - 区块链\n  - 交易\n  - 账户\n  - 矿工\n  - 手续费\n  - 奖励\n\n- 区块：\n  - 区块头，包含前一个区块的哈希pre_hash，当前区块交易哈希tx_hash、区块打包时间time\n  - 区块体，包含所有交易transactions\n  - 区块哈希，是计算区块头和区块体得到的哈希值","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaqudee%2Frust-algorithms-data-structures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaqudee%2Frust-algorithms-data-structures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaqudee%2Frust-algorithms-data-structures/lists"}