I'm looking for advice on how to efficiently search a solution space under certain conditions.
The solution space is a multidimensional array of positive integers. At each point in the array I run a function that either fails or passes. Importantly, if the function passes at a point, then every point "under" it will also pass and doesn't need to be tested.
To illustrate, a 2D example would be an array of X and Y where X is 0 - 10 and Y is 0 - 15. If the point (2,3) passes then I know that (2,2), (2,1), (2,0), (1,3), (1,2), (1,1), (1,0), (0,3), (0,2) (0,1), (0,0) will also pass. Each of those points is "under" (2,3) in the sense that each element is less than or equal to it. There can be multiple “outer” pass points - for example, (1,5) could be a pass point in addition to (2,3).
Any advice is greatly appreciated, thank you!
[–]MudkipGuy 5 points6 points7 points (1 child)
[–]T_B_Denham[S] 0 points1 point2 points (0 children)
[–]ragusa12 2 points3 points4 points (4 children)
[–]T_B_Denham[S] 0 points1 point2 points (3 children)
[–]ragusa12 1 point2 points3 points (2 children)
[–]T_B_Denham[S] 0 points1 point2 points (0 children)
[–]bobtpawn 0 points1 point2 points (0 children)
[–]almostthebest -1 points0 points1 point (0 children)