Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30515
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-05-22 23:05 -0700 |
| References | <89e1dd41-b971-4f04-aad2-e726abe20d56@googlegroups.com> <3aa6bb6e-c513-4228-ada6-095c58d67022@googlegroups.com> <0984346c-891a-4f03-96c5-c983f96aeb1d@googlegroups.com> <1426456b-46cd-4a18-8d3b-1447508dd3e6@googlegroups.com> |
| Message-ID | <6fda8732-0818-4382-8d58-656704e17dea@googlegroups.com> (permalink) |
| Subject | Re: Layered object |
| From | jonas.thornvall@gmail.com |
Den måndag 23 maj 2016 kl. 00:57:57 UTC+2 skrev Michael Haufe (TNO): > On Sunday, May 22, 2016 at 4:59:50 PM UTC-5, jonas.t...@gmail.com wrote: > > Den söndag 22 maj 2016 kl. 18:03:24 UTC+2 skrev Michael Haufe (TNO): > > > On Saturday, May 21, 2016 at 12:41:36 PM UTC-5, jonas.t...@gmail.com wrote: > > > > I have an object storing integers, many formulas may of course generate the same integer. And for some expressions for example on form a*x^j i would like to store each occurence. Now all my numbers are printed out in a square grid. > > > > > > Don't. It's going to be slower. > > > > Well just storing them within the array can hardly slow it down or? > > Memoization isn't free and your approach would be even less so. I've written a little about this topic in the past: > > <https://thenewobjective.com/blog/2013/01/dynamic-programming-for-great-justice/> Do you have any suggestion, or do you just say it is not wise to make a deeper multidimensional storage structure? I think the script could benefit from using a layered structure for the expression. For those integers that get multiple occurences i just put a border around no need to draw them out. And then you could use an optional event handler on mouse over and on mouse click to zoom in and scroll through the occurences/expressions.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Layered object jonas.thornvall@gmail.com - 2016-05-21 10:41 -0700
Re: Layered object Aleksandro <aleksandro@gmx.com> - 2016-05-21 19:41 -0400
Re: Layered object jonas.thornvall@gmail.com - 2016-05-21 23:42 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-22 03:50 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-22 09:03 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-22 14:59 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-22 15:57 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-22 22:46 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-25 17:13 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-22 23:05 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-25 17:15 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-22 23:08 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-23 08:31 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-24 05:38 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-25 17:22 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-25 22:56 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-25 23:07 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-25 23:10 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-25 23:24 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 01:47 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 01:53 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 02:58 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-26 06:42 -0700
Re: Layered object Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-05-26 11:30 +0100
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 03:47 -0700
Re: Layered object Tim Streater <timstreater@greenbee.net> - 2016-05-26 12:43 +0100
Re: Layered object Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-05-26 14:13 +0100
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-26 07:05 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 03:51 -0700
Re: Layered object jonas.thornvall@gmail.com - 2016-05-26 04:00 -0700
Re: Layered object Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-05-27 22:14 +0100
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-26 06:40 -0700
Re: Layered object "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-05-25 17:21 -0700
csiph-web