Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前端常见数据结构小结 #28

Closed
MuYunyun opened this issue Aug 18, 2018 · 0 comments
Closed

前端常见数据结构小结 #28

MuYunyun opened this issue Aug 18, 2018 · 0 comments

Comments

@MuYunyun
Copy link
Owner

MuYunyun commented Aug 18, 2018

常见数据结构的 JavaScript 实现

前端与数据结构

数据结构在开发中是一种编程思想的提炼,无关于用何种语言开发或者是哪种端开发。下列将笔者涉猎到的与前端相关的数据结构案例作如下总结:

数据结构 案例
FILO: 其它数据结构的基础,redux/koa2 中间件机制
队列 FIFO:其它数据结构的基础
链表 React 16 中的 Fiber 的优化
集合 对应 JavaScript 中的 Set
字典 对应 JavaScript 中的 Map
哈希表 一种特殊的字典,可以用来存储加密数据
DOM TREE / HTML TREE / CSS TREE
暂时没遇到,不过里面的 BFS/DFS 蛮常见
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant