Is LinkedList an Abstract Data Structure? [duplicate]

This quote is from the book HeadFirst C:

A linked list is an example of an abstract data structure. It’s called
an abstract data structure because a linked list is general: it can be
used to store a lot of different kinds of data.

Is this accurate / correct information?

2

The question of abstractness is closely related to the language it is implemented in.

In Java, C# and the like, an abstract data structure is truly an abstract one. You can’t instantiate it directly. This may be because it is an interface or an abstract class. It is a concept with some underlying things to it. LinkedList isn’t abstract – it is a concrete implementation of a List (that’s an abstract data structure in Java), which itself is a Collection (for more abstract set of operations on it).

In C, however, you don’t have the generics. Unless you are doing everything with void* types in a given data structure, it doesn’t really exist in the abstract. And so concepts such as hash tables (a concrete type in Java) and linked lists remain in the abstract realm until you make a “here is a struct with this data structure that allows you to implement a linked list”.

So, is it abstract or not? In some languages it is, in others it isn’t.


Lets confuse things a bit.

A linked list is a Pattern – it is a tool you use or implement when a particular problem calls for it. Some have argued that design patterns are missing language features. That it is abstract in one language and concrete in another is because it is a “missing” language feature in C and not in Java (but there its part of the class library rather than being a fundamental part of the language like in Lisp).

At the end of the day, don’t worry about if it is abstract or not. It is something. And you implement or use it somehow. When a C programmer and a Java programmer talk about a Linked List, they are talking about the same thing (just the C programmer did more work). That’s all that matters. Its a common way of talking about a common thing, and that’s what Patterns are about.

It just depends on how you interpret “abstract”. The excerpt you quote defines “abstract” as capable of holding different kinds of data.

Don’t confuse this sense of “abstract” with the JAVA/OOP sense of abstract. In Java, for example, the LinkedList class is not abstract — it can be instantiated.

The answer is open to interpretation.

To me a basic or concrete data structure simply manipulates memory. Linked lists and arrays fit the bill. Abstract data structures impose regulations or semantics above a basic data structure. Queues, stacks, heaps, and so on.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Is LinkedList an Abstract Data Structure? [duplicate]

This quote is from the book HeadFirst C:

A linked list is an example of an abstract data structure. It’s called
an abstract data structure because a linked list is general: it can be
used to store a lot of different kinds of data.

Is this accurate / correct information?

2

The question of abstractness is closely related to the language it is implemented in.

In Java, C# and the like, an abstract data structure is truly an abstract one. You can’t instantiate it directly. This may be because it is an interface or an abstract class. It is a concept with some underlying things to it. LinkedList isn’t abstract – it is a concrete implementation of a List (that’s an abstract data structure in Java), which itself is a Collection (for more abstract set of operations on it).

In C, however, you don’t have the generics. Unless you are doing everything with void* types in a given data structure, it doesn’t really exist in the abstract. And so concepts such as hash tables (a concrete type in Java) and linked lists remain in the abstract realm until you make a “here is a struct with this data structure that allows you to implement a linked list”.

So, is it abstract or not? In some languages it is, in others it isn’t.


Lets confuse things a bit.

A linked list is a Pattern – it is a tool you use or implement when a particular problem calls for it. Some have argued that design patterns are missing language features. That it is abstract in one language and concrete in another is because it is a “missing” language feature in C and not in Java (but there its part of the class library rather than being a fundamental part of the language like in Lisp).

At the end of the day, don’t worry about if it is abstract or not. It is something. And you implement or use it somehow. When a C programmer and a Java programmer talk about a Linked List, they are talking about the same thing (just the C programmer did more work). That’s all that matters. Its a common way of talking about a common thing, and that’s what Patterns are about.

It just depends on how you interpret “abstract”. The excerpt you quote defines “abstract” as capable of holding different kinds of data.

Don’t confuse this sense of “abstract” with the JAVA/OOP sense of abstract. In Java, for example, the LinkedList class is not abstract — it can be instantiated.

The answer is open to interpretation.

To me a basic or concrete data structure simply manipulates memory. Linked lists and arrays fit the bill. Abstract data structures impose regulations or semantics above a basic data structure. Queues, stacks, heaps, and so on.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Is LinkedList an Abstract Data Structure? [duplicate]

This quote is from the book HeadFirst C:

A linked list is an example of an abstract data structure. It’s called
an abstract data structure because a linked list is general: it can be
used to store a lot of different kinds of data.

Is this accurate / correct information?

2

The question of abstractness is closely related to the language it is implemented in.

In Java, C# and the like, an abstract data structure is truly an abstract one. You can’t instantiate it directly. This may be because it is an interface or an abstract class. It is a concept with some underlying things to it. LinkedList isn’t abstract – it is a concrete implementation of a List (that’s an abstract data structure in Java), which itself is a Collection (for more abstract set of operations on it).

In C, however, you don’t have the generics. Unless you are doing everything with void* types in a given data structure, it doesn’t really exist in the abstract. And so concepts such as hash tables (a concrete type in Java) and linked lists remain in the abstract realm until you make a “here is a struct with this data structure that allows you to implement a linked list”.

So, is it abstract or not? In some languages it is, in others it isn’t.


Lets confuse things a bit.

A linked list is a Pattern – it is a tool you use or implement when a particular problem calls for it. Some have argued that design patterns are missing language features. That it is abstract in one language and concrete in another is because it is a “missing” language feature in C and not in Java (but there its part of the class library rather than being a fundamental part of the language like in Lisp).

At the end of the day, don’t worry about if it is abstract or not. It is something. And you implement or use it somehow. When a C programmer and a Java programmer talk about a Linked List, they are talking about the same thing (just the C programmer did more work). That’s all that matters. Its a common way of talking about a common thing, and that’s what Patterns are about.

It just depends on how you interpret “abstract”. The excerpt you quote defines “abstract” as capable of holding different kinds of data.

Don’t confuse this sense of “abstract” with the JAVA/OOP sense of abstract. In Java, for example, the LinkedList class is not abstract — it can be instantiated.

The answer is open to interpretation.

To me a basic or concrete data structure simply manipulates memory. Linked lists and arrays fit the bill. Abstract data structures impose regulations or semantics above a basic data structure. Queues, stacks, heaps, and so on.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Is LinkedList an Abstract Data Structure? [duplicate]

This quote is from the book HeadFirst C:

A linked list is an example of an abstract data structure. It’s called
an abstract data structure because a linked list is general: it can be
used to store a lot of different kinds of data.

Is this accurate / correct information?

2

The question of abstractness is closely related to the language it is implemented in.

In Java, C# and the like, an abstract data structure is truly an abstract one. You can’t instantiate it directly. This may be because it is an interface or an abstract class. It is a concept with some underlying things to it. LinkedList isn’t abstract – it is a concrete implementation of a List (that’s an abstract data structure in Java), which itself is a Collection (for more abstract set of operations on it).

In C, however, you don’t have the generics. Unless you are doing everything with void* types in a given data structure, it doesn’t really exist in the abstract. And so concepts such as hash tables (a concrete type in Java) and linked lists remain in the abstract realm until you make a “here is a struct with this data structure that allows you to implement a linked list”.

So, is it abstract or not? In some languages it is, in others it isn’t.


Lets confuse things a bit.

A linked list is a Pattern – it is a tool you use or implement when a particular problem calls for it. Some have argued that design patterns are missing language features. That it is abstract in one language and concrete in another is because it is a “missing” language feature in C and not in Java (but there its part of the class library rather than being a fundamental part of the language like in Lisp).

At the end of the day, don’t worry about if it is abstract or not. It is something. And you implement or use it somehow. When a C programmer and a Java programmer talk about a Linked List, they are talking about the same thing (just the C programmer did more work). That’s all that matters. Its a common way of talking about a common thing, and that’s what Patterns are about.

It just depends on how you interpret “abstract”. The excerpt you quote defines “abstract” as capable of holding different kinds of data.

Don’t confuse this sense of “abstract” with the JAVA/OOP sense of abstract. In Java, for example, the LinkedList class is not abstract — it can be instantiated.

The answer is open to interpretation.

To me a basic or concrete data structure simply manipulates memory. Linked lists and arrays fit the bill. Abstract data structures impose regulations or semantics above a basic data structure. Queues, stacks, heaps, and so on.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Is LinkedList an Abstract Data Structure? [duplicate]

This quote is from the book HeadFirst C:

A linked list is an example of an abstract data structure. It’s called
an abstract data structure because a linked list is general: it can be
used to store a lot of different kinds of data.

Is this accurate / correct information?

2

The question of abstractness is closely related to the language it is implemented in.

In Java, C# and the like, an abstract data structure is truly an abstract one. You can’t instantiate it directly. This may be because it is an interface or an abstract class. It is a concept with some underlying things to it. LinkedList isn’t abstract – it is a concrete implementation of a List (that’s an abstract data structure in Java), which itself is a Collection (for more abstract set of operations on it).

In C, however, you don’t have the generics. Unless you are doing everything with void* types in a given data structure, it doesn’t really exist in the abstract. And so concepts such as hash tables (a concrete type in Java) and linked lists remain in the abstract realm until you make a “here is a struct with this data structure that allows you to implement a linked list”.

So, is it abstract or not? In some languages it is, in others it isn’t.


Lets confuse things a bit.

A linked list is a Pattern – it is a tool you use or implement when a particular problem calls for it. Some have argued that design patterns are missing language features. That it is abstract in one language and concrete in another is because it is a “missing” language feature in C and not in Java (but there its part of the class library rather than being a fundamental part of the language like in Lisp).

At the end of the day, don’t worry about if it is abstract or not. It is something. And you implement or use it somehow. When a C programmer and a Java programmer talk about a Linked List, they are talking about the same thing (just the C programmer did more work). That’s all that matters. Its a common way of talking about a common thing, and that’s what Patterns are about.

It just depends on how you interpret “abstract”. The excerpt you quote defines “abstract” as capable of holding different kinds of data.

Don’t confuse this sense of “abstract” with the JAVA/OOP sense of abstract. In Java, for example, the LinkedList class is not abstract — it can be instantiated.

The answer is open to interpretation.

To me a basic or concrete data structure simply manipulates memory. Linked lists and arrays fit the bill. Abstract data structures impose regulations or semantics above a basic data structure. Queues, stacks, heaps, and so on.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Is LinkedList an Abstract Data Structure? [duplicate]

This quote is from the book HeadFirst C:

A linked list is an example of an abstract data structure. It’s called
an abstract data structure because a linked list is general: it can be
used to store a lot of different kinds of data.

Is this accurate / correct information?

2

The question of abstractness is closely related to the language it is implemented in.

In Java, C# and the like, an abstract data structure is truly an abstract one. You can’t instantiate it directly. This may be because it is an interface or an abstract class. It is a concept with some underlying things to it. LinkedList isn’t abstract – it is a concrete implementation of a List (that’s an abstract data structure in Java), which itself is a Collection (for more abstract set of operations on it).

In C, however, you don’t have the generics. Unless you are doing everything with void* types in a given data structure, it doesn’t really exist in the abstract. And so concepts such as hash tables (a concrete type in Java) and linked lists remain in the abstract realm until you make a “here is a struct with this data structure that allows you to implement a linked list”.

So, is it abstract or not? In some languages it is, in others it isn’t.


Lets confuse things a bit.

A linked list is a Pattern – it is a tool you use or implement when a particular problem calls for it. Some have argued that design patterns are missing language features. That it is abstract in one language and concrete in another is because it is a “missing” language feature in C and not in Java (but there its part of the class library rather than being a fundamental part of the language like in Lisp).

At the end of the day, don’t worry about if it is abstract or not. It is something. And you implement or use it somehow. When a C programmer and a Java programmer talk about a Linked List, they are talking about the same thing (just the C programmer did more work). That’s all that matters. Its a common way of talking about a common thing, and that’s what Patterns are about.

It just depends on how you interpret “abstract”. The excerpt you quote defines “abstract” as capable of holding different kinds of data.

Don’t confuse this sense of “abstract” with the JAVA/OOP sense of abstract. In Java, for example, the LinkedList class is not abstract — it can be instantiated.

The answer is open to interpretation.

To me a basic or concrete data structure simply manipulates memory. Linked lists and arrays fit the bill. Abstract data structures impose regulations or semantics above a basic data structure. Queues, stacks, heaps, and so on.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật