Python Disk-Based Dictionary

后端 未结 8 1677
逝去的感伤
逝去的感伤 2020-12-04 16:44

I was running some dynamic programming code (trying to brute-force disprove the Collatz conjecture =P) and I was using a dict to store the lengths of the chains I had alread

8条回答
  •  不思量自难忘°
    2020-12-04 17:12

    You should bring more than one item at a time if there's some heuristic to know which are the most likely items to be retrieved next, and don't forget the indexes like Charles mentions.

提交回复
热议问题