Tagged Questions

5
votes
3answers
536 views

Is there a canonical book on Python algorithms and data structures ?

I'm already considering those two books : "Data structures and algorithms using python and C++" by Reed and Zelle. "Python Algorithms: Mastering Basic Algorithms in the Python Language" by Hetland ...
2
votes
1answer
247 views

How costly are the Python dict and set in-built types?

I have undertaken a project concerning database deduplication. I did some research and have found that the Python dict type actually is a hashmap that uses open addressing. In the deduplication ...
2
votes
4answers
183 views

Data Structures to represent logical expressions

Here is a logical statement: term1 AND (term2 OR term3) OR term4 What is an effective way of storing this information in a data structure? For example, should I use a graph, with a property on ...
1
vote
1answer
432 views

graph data structure in Java (or Python)

does Java have graphs as an intergrated data structure? How about Python? I was assigned to write a program, that solves the TSP (travelling salesman problem) via the GRASP (greedy randomized ...