allanchain / dsa Goto Github PK
View Code? Open in Web Editor NEWData Structure and Algorithm ( 数据结构与算法 )
License: MIT License
Data Structure and Algorithm ( 数据结构与算法 )
License: MIT License
某单位最多100辆车辆,每辆车的基本信息包括:车号、车型、购买日期、购买价格、驾驶员名称、违章记录等。其中,各辆车的违章次数可能差别很大(有的一次没有,有的可能有数十次)。每次违章记录中包括:违章时间、违章地点、违章代码(如闯红灯、违规停车等)、违章处理等。
现思考:
统计违章记录时,需要给出车号、违章记录数目等。
实现上述车辆管理的程序,包括车辆信息的文件导入/导出和显示等。
要求:
实现 KMP 无回溯模式匹配算法。
具体算法见教科书
给定记录序列:{ 79,8,6,93,59,84,55,9,71,33,16 }
实现“堆排序”、“基数排序”和“二路归并排序”的算法。
要求:一个工程(Project),不同排序方法对应不同源程序(即:一种方法对应一个源程序)。
本作业的目的:理解几种重要排序方法的**、过程和算法。
实现二叉排序树建立和检索算法
图书检索中,通常要建立“关键词-书号索引表”
书号 | 书名 |
---|---|
005 | Computer Data Structures |
010 | Introduction to Data Structures |
023 | Fundamental of Data Structures |
034 | The Design and Analysis of Computer Algorithms |
050 | Introduction to Numerical Analysis |
067 | Numerical Analysis |
⇓
关键词 | 书号索引 |
---|---|
algorithms | 034 |
analysis | 034 050 067 |
computer | 005 034 |
data | 005 010 023 |
design | 034 |
fundamentals | 023 |
introduction | 010 050 |
numerical | 050 067 |
structures | 005 010 023 |
存放书名中的各个关键词,数量有限,采用顺序结构存储,每个词是一个字符串
虽然动态生成,并且需要频繁插入,但考虑到该表主要用于查询,因此采用顺序存储结构。表中每个索引项包含两方面内容:关键词和书号索引。书号索引由于是动态生成的,且数目不同,宜采用链表结构存储。
农夫带一只狼、一只羊、一棵白菜过河,船小的每次只能带一样东西,由于狼能吃羊、羊能吃白菜,因此留下的两样东西不能任意组合。那么,农夫采用何种方案才能将所有东西不损害地运过河?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.