Python Forum
Data Structures and Algorithms Python
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data Structures and Algorithms Python
#1
This book is rich in examples, with beautiful pictures and texts, and explains the data structure and algorithms in a way that is easy to understand.


http://www.verebuy.com

[Image: 41s-dxS4v2L.jpg]
Reply
#2
Thanks for sharing
Reply
#3
I took a look at the beginning, and my initial impression isn't good.

The first part, "linear table" doesn't seem to solve any problems. I have no idea why it's included. That aside, there are other issues. They call a Python list an "array" which is wrong, because Python does have arrays, and they're not the same as lists. The code has issues too. It imports sys for no reason, it uses a C-style for loop which is an anti-pattern in Python, and they lie about the result to make it look better, rather than improving the code (I'm referring to the trailing comma). I would also omit main functions from such short, simple code.

The second part, "maximum of integer sequences" is bizarre. Why would we modify the input list to find the max? Mutation should be done carefully, not at random for no reason. Also, the name "arrays" of the parameter isn't just wrong because it's a list, it's one list, not multiple, so "array" would have been closer.
Reply
#4
The author emailed me asking for me to remove my 1-star review. I went and looked at their Java book, and you can see that they did a trivial translation of their Java book (hence the C-style for loop right at the beginning). The Java has some similar problems. I recommend nobody go anywhere near any of their books, you'll pickup bad habits that you'll regret. (Or you'll be ok with it, but people will waste time interviewing you because those habits will stop you getting hired.)
Reply
#5
Not to mention that a good search engine finds innumerable references for 'algorithms in python', many of which are excellent and free.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Algorithms, A*, Greedy not for pathfinding DuaneJack 1 1,952 Oct-15-2018, 11:20 AM
Last Post: DuaneJack

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020