← 返回首页

数据结构

Data Structures

课程介绍 Course Introduction

学分:4 | 先修课:程序设计基础、离散数学 | 学期:第2学期

数据结构是软件工程专业的核心基础课程,研究数据的逻辑结构、存储结构及相应算法。主要内容包括线性表、栈、队列、串、数组、树与二叉树、图、散列表,以及排序与查找算法。课程强调时间复杂度与空间复杂度分析,培养学生根据实际问题选择合适数据结构的能力,为后续算法设计、操作系统、数据库等课程奠定坚实基础。

Data Structures is a core foundation course in software engineering, covering logical and storage structures of data along with associated algorithms. Topics include lists, stacks, queues, strings, arrays, trees and binary trees, graphs, hash tables, as well as sorting and searching algorithms. The course emphasizes complexity analysis and cultivates the ability to choose appropriate structures for real problems, laying groundwork for algorithms, operating systems, and databases.

大作业 Final Project

作业标题:校园导航系统

学生需设计并实现一个校园地图导航系统,使用图结构存储地点与路径信息。要求实现Dijkstra与Floyd最短路径算法,支持景点查询、路径规划与最短距离计算。需采用合适的图存储结构,并提供命令行或图形界面。提交可运行程序、源代码及设计文档。

Students design and implement a campus navigation system using a graph to store locations and paths. Requirements include Dijkstra and Floyd shortest path algorithms, landmark query, route planning, and distance calculation. Deliverables include a runnable program, source code, and design documentation with an appropriate graph representation.

实施步骤 Implementation Steps

📋 示例:实现几种核心数据结构并解决实际问题,比如用二叉搜索树实现一个能自动排序的词典,或用哈希表实现一个高效的缓存系统。你需要自己写代码实现插入、删除、查找操作,并分析每种操作的时间复杂度。
步骤 1
图数据建模
分析校园地图需求,设计图结构存储地点与路径信息,选择邻接矩阵或邻接表表示法
产出:图数据结构设计文档
步骤 2
最短路径算法实现
实现Dijkstra单源最短路径算法和Floyd-Warshall多源最短路径算法
产出:算法源代码
步骤 3
路径规划功能开发
开发景点查询、路径规划、距离计算功能,提供命令行或图形界面交互
产出:功能模块代码
步骤 4
算法测试验证
设计测试用例验证算法正确性,分析时间复杂度和空间复杂度
产出:测试报告与复杂度分析
步骤 5
文档整理提交
整理代码注释、编写设计文档和使用说明
产出:完整项目文档

Steps

Step 1
Graph Data Modeling
Analyze campus map requirements, design graph structure for locations and paths
Deliverable: Graph Structure Design Doc
Step 2
Shortest Path Algorithm
Implement Dijkstra and Floyd-Warshall shortest path algorithms
Deliverable: Algorithm Source Code
Step 3
Route Planning Development
Develop landmark query, route planning, and distance calculation
Deliverable: Feature Module Code
Step 4
Algorithm Testing
Design test cases to validate correctness, analyze complexity
Deliverable: Test Report & Complexity Analysis
Step 5
Documentation
Prepare code comments, design documentation, and user manual
Deliverable: Complete Project Documentation

Prerequisites · International Exams · Contact · Back to top · Home