algorithm
Find an algorithm to win this battle against crime!
A crime committed in a city and the suspect starts to run away. A map of the city is given. At the moment, there are some police cars at some given places and they try to stop the suspect. The car of[详细]
2023-04-13 04:11 分类:问答How to do large file integrity check
I need to do an integrity check for a single big file. I have read the SHA code for Android, but it will need one another file for the result digest. Is there another method using a single file?[详细]
2023-04-13 03:50 分类:问答efficient renaming of variables in first-order formulae
edit2: Taking the hint that de Bruijn indices might be easier to work with, I\'ve reformulated much of the internal representation of formulae to use a mixed de Bruijn representation ala Connor McBrid[详细]
2023-04-13 03:18 分类:问答What is the difference between Travelling Salesman and finding Shortest Path?
The only difference I could think of for the question is that in the Travelling Salesman Problem (TSP) I need to find a[详细]
2023-04-13 03:07 分类:问答substring finding from a string
Input: string S = AAGATATGATAGGAT. Output: Maximal repeats such as GATA (as in positions 3 and 8), GAT (as in position 3, 8 and开发者_运维百科 13) and so on...[详细]
2023-04-13 03:04 分类:问答How do I create a random path?
I\'m looking for an algorithm that can generate something like what\'s in this image: I\'ve read about drunken walk algorithms 开发者_如何学Pythonbut they don\'t seem to quite fit what I need. I\'m[详细]
2023-04-13 02:29 分类:问答Finding the Diagonal Containing a Specific Cell in a Grid
Lets say we have a grid containing cells, and that we want to return two arrays where each contains all the cells in the diagonal with that cell, up-left to bottom-right and the opposite one. What wou[详细]
2023-04-13 02:24 分类:问答"People who watched this also watched" algorithm
I am trying to code an algor开发者_Python百科ithm that acts a bit like Amazon\'s \"People who bought this also bought\".[详细]
2023-04-13 02:23 分类:问答How does the algorithm for the "report abuse" feature on a website work? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po[详细]
2023-04-13 02:19 分类:问答Number of results needed from each node in parallel processing
I have a dataset (in the form of a file) composed of lines of words. I want to find the 20 more frequently occurring words. This is a huge dataset so I am processing this in parallel. Now I would part[详细]
2023-04-13 01:55 分类:问答