TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Difference between data structure and ADT?

2 点作者 yearsinrock超过 17 年前
I was reading my semester book fro data structures and algorithms.I am confused between adt and data structure.what is the exact difference between them? + can anyone give explain it with a suitable example?

1 comment

corentin超过 17 年前
An abstract data type is the specification of an interface; it's a set of operations whose behavior is defined.<p>A data structure describes how data is organized in memory.<p>Let's imagine a stack ADT with two operations: push and pop. We can decide to implement this ADT using, say, an array or a linked list. In either case, its operation will be the same (that is, you'll get the same results; but its time and space properties may be different).
评论 #75077 未加载