chapter_data_structure/classification_of_data_structure/ #201
Replies: 40 comments 45 replies
-
请问:线性数据结构和非线性数据结构,哈希表为什么都存在。 |
Beta Was this translation helpful? Give feedback.
-
基于数组实现的数据结构也被称为「静态数据结构」,这意味着该数据结构在在被初始化后,长度不可变。 像JS的数组可以不断的push数据,长度也在变化吧,可能底层做了处理? |
Beta Was this translation helpful? Give feedback.
-
2023.05转码打卡,看晕了 |
Beta Was this translation helpful? Give feedback.
-
算法小白,冲今年的秋招 |
Beta Was this translation helpful? Give feedback.
-
「物理结构」反映了数据在计算机内存中的存储方式,可分为数组的连续空间存储和链表的离散空间存储 |
Beta Was this translation helpful? Give feedback.
-
作者的链表的图看着很舒服,数据域和指针域感觉很清晰 |
Beta Was this translation helpful? Give feedback.
-
节点和节点指针看着一目了然,链表就该长这样 |
Beta Was this translation helpful? Give feedback.
-
Fig. 线性与非线性数据结构中队列的操作称为enqueue和dequeue比较合适吧 |
Beta Was this translation helpful? Give feedback.
-
上文中哈希表被描述为既是线性结构还是树形结构,我认为其属于线性结构比较合理把 |
Beta Was this translation helpful? Give feedback.
-
Fig. 连续空间存储与离散空间存储中,链表箭头的起始位置和结束位置正确吗,我理解不应该是起始位置为指针域的中心,结束位置是下一个节点的数据域吗? |
Beta Was this translation helpful? Give feedback.
-
图做的确实有新意。 |
Beta Was this translation helpful? Give feedback.
-
逻辑结构和物理结构都有数组和链表的概念,这个如何区分呢?之前是通过顺序存储和链式存储区分的。 |
Beta Was this translation helpful? Give feedback.
-
线性结构:数组、链表、队列、栈、哈希表,元素之间是一对一的顺序关系。 |
Beta Was this translation helpful? Give feedback.
-
大佬你好,在java中ArrayList底层采用hash表的存储方式,在jdk7之前hash表存储数据采用的是的数组加链表,jdk7之后采用数组加链表及红黑树的存储方式,那么我的问题是,hash表本身提供了这种数组加链表和红黑树的存储方式还是这种存储方式是java所设计的? |
Beta Was this translation helpful? Give feedback.
-
基于数组实现的数据结构也被称为“静态数据结构” |
Beta Was this translation helpful? Give feedback.
-
逻辑结构:是抽象结构,理论上的结构; |
Beta Was this translation helpful? Give feedback.
-
逻辑结构: 元素逻辑关系,分线性和非线形。
所有的数据结构可以通过 数组和链表实现。 作者讲的很形象,赞 |
Beta Was this translation helpful? Give feedback.
-
k神,想问问这些图片是用什么工具制作的,看起来非常优雅 |
Beta Was this translation helpful? Give feedback.
-
基于数组实现的数据结构也称“静态数据结构”,这意味着此类数据结构在初始化后长度不可变。 但是python中的数组通常是指list,这是一个动态数据结构,然后python中还有一个array模块,提供了一种数组类型 import array
# 创建一个整数数组('i'是类型码,表示有符号整数)
int_array = array.array('i', [1, 2, 3, 4, 5]) array模块的数组与列表类似,也是动态的,可以在运行时改变大小 python中只有元组类型是静态数据结构 |
Beta Was this translation helpful? Give feedback.
-
从图中看不出堆和树的区别嘛 |
Beta Was this translation helpful? Give feedback.
-
编程语言的标准包,都会将常用的数据结构封装好提供外部使用。虽然“数组”作为“静态数据结构”,但其实在一些编程语言中也已经考虑到了动态伸缩的设计。不过掌握该知识点还是很有必要的
|
Beta Was this translation helpful? Give feedback.
-
您好!我有几个问题,请赐教: 问题2: 问题3: 问题4: |
Beta Was this translation helpful? Give feedback.
-
书中怎么没有提到线性表 |
Beta Was this translation helpful? Give feedback.
-
内存是所有程序的共享资源,当某块内存被某个程序占用时,则无法被其他程序同时使用了。 -- 这个说法并不是太严谨,通常情况下是这样,但也存在共享内存的情况。 |
Beta Was this translation helpful? Give feedback.
-
为什么线性结构和非线性结构中都有哈希表??? |
Beta Was this translation helpful? Give feedback.
-
可惜没早点看到这个网站 |
Beta Was this translation helpful? Give feedback.
-
有的时候上课会提到的:堆区和栈区这个模型是否就是完全对应对应物理结构的连续与分散?还是可能有什么因为环境导致的区别? |
Beta Was this translation helpful? Give feedback.
-
henbuduo |
Beta Was this translation helpful? Give feedback.
-
王长生,看到我没 |
Beta Was this translation helpful? Give feedback.
-
Conclusion: 栈(stack):先进后出; 所有数据结构都是基于数组、链表或二者的组合实现的: |
Beta Was this translation helpful? Give feedback.
-
chapter_data_structure/classification_of_data_structure/
一本动画图解、能运行、可提问的数据结构与算法入门书
https://www.hello-algo.com/chapter_data_structure/classification_of_data_structure/
Beta Was this translation helpful? Give feedback.
All reactions