With only one example, I'm going to have to do a bit more guessing
than I'd like, but ok. If this was easy, it would be done already...

You might also try running the maze solver with a larger maze.

And, I guess I should also ask if it's specifically the maze *solver*
which you find useful or the generator (the part also presented at
http://rosettacode.org/wiki/Maze_generation#J ) or both which you find
useful?

Anyways, here's some things which might be "close enough":

http://rosettacode.org/wiki/Bitmap/Midpoint_circle_algorithm#J
http://rosettacode.org/wiki/Hofstadter_Figure-Figure_sequences#J
http://rosettacode.org/wiki/K-d_tree#J
http://rosettacode.org/wiki/Knuth%27s_power_tree#J
http://rosettacode.org/wiki/Runge-Kutta_method#J
http://rosettacode.org/wiki/Stable_marriage_problem#J
http://rosettacode.org/wiki/Voronoi_diagram/J/Delaunay_triangulation
(the convex hull part).

Also... since two of the initial guesses at the "top 3" were actually
not suitable, does that mean that some of the other, rejected,
candidates might have been suitable? For example, it seems to as if
that levenshtein algorithm is very "fortran-like".

I am also wondering if the trial division primality test at
http://code.jsoftware.com/wiki/Essays/Primality_Tests has any
relevance? Or are arbitrary precision integers so slow that they mask
any gains here?

Thanks,

-- 
Raul


On Wed, May 25, 2016 at 7:22 PM, Henry Rich <[email protected]> wrote:
> It turns out that Tonelli-Shanks is tiny & hard to time accurately &
> Superpermutation is totally dominated by time spent managing large strings.
> Maze Solving took 0.02 seconds per run, and was about 20% faster with the
> new code in.
>
> I reckon I need to time these things before getting excited about them.
> Anyway, of the choices you gave, only Maze Solving is suitable.
>
> Henry Rich
>
>
> On 5/25/2016 6:58 PM, Henry Rich wrote:
>>
>> Those are good candidates.  My top 3:
>>
>> http://rosettacode.org/wiki/Maze_solving#J
>> http://rosettacode.org/wiki/Tonelli-Shanks_algorithm#J
>> http://rosettacode.org/wiki/Superpermutation_minimisation#J
>>
>> I will look at timing those, and you can look into finding more like them.
>>
>> Henry Rich
>>
>>
>>
>> On 5/25/2016 5:08 PM, Raul Miller wrote:
>>>
>>> On Wed, May 25, 2016 at 4:34 PM, Henry Rich <[email protected]> wrote:
>>>>
>>>> We would like a benchmark that uses scalar code heavily.  This is the
>>>> kind
>>>> of application that you might say is 'not good for J'. We'd like to make
>>>> J
>>>> better on those applications.  If you have some old FORTRAN-style code
>>>> written in J, we'd like to see it.
>>>
>>> A quick look through rosettacode finds some plausible possibilities.
>>>
>>> Note, however, that these are not necessarily "purely scalar". For
>>> example, when indexing a matrix you need to use a boxed pair. This is
>>> something that would be "scalar" in fortran, but goes a different
>>> route in J. Or maybe we're using a rank operator to represent an inner
>>> loop. For example:
>>>
>>> http://rosettacode.org/wiki/Solve_a_Holy_Knight's_tour#J
>>>
>>> So, anyways, I do not actually know how many of these are actually in
>>> the ballpark of what you need. Some of these might also need to use
>>> different data to really exercise the machine. But if you could pick
>>> out a "top 3" for me, and maybe identify any obvious data
>>> deficiencies, I might be able to see if I can find some more things
>>> that seem to fit that pattern:
>>>
>>> http://rosettacode.org/wiki/Cipolla's_algorithm#J
>>> http://rosettacode.org/wiki/Dijkstra's_algorithm#J
>>> http://rosettacode.org/wiki/Knight's_tour#J
>>> http://rosettacode.org/wiki/Levenshtein_distance#J
>>> http://rosettacode.org/wiki/Maze_solving#J
>>> http://rosettacode.org/wiki/Self-referential_sequence#J
>>> http://rosettacode.org/wiki/Superpermutation_minimisation#J
>>> http://rosettacode.org/wiki/Tonelli-Shanks_algorithm#J
>>>
>>> I hope this helps,
>>>
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to