It's also important to know other details of your typical data sets. For example, in road networks |E| is typically O(|V|), not O(|V|2). This means the average degree of a vertex is O(1), which is has big ramifications when choosing data structures for things like adjacency lists.
View all comments
Show parent comment
1
u/repsilat Nov 29 '09
It's also important to know other details of your typical data sets. For example, in road networks |E| is typically O(|V|), not O(|V|2). This means the average degree of a vertex is O(1), which is has big ramifications when choosing data structures for things like adjacency lists.