计算机科学 > 数据结构与算法
[提交于 2009年8月21日]
标题:Data structure for representing a graph: combination of linked list and hash table
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In this article we discuss a data structure, which combines advantages of two different ways for representing graphs: adjacency matrix and collection of adjacency lists. This data structure can fast add and search edges (advantages of adjacency matrix), use linear amount of memory, let to obtain adjacency list for certain vertex (advantages of collection of adjacency lists). Basic knowledge of linked lists and hash tables is required to understand this article. The article contains examples of implementation on Java.
提交历史
来自:Maxim Kolosovskiy[v1] 2009年8月21日 星期五 10:12:31 UTC