flat assembler
Message board for the users of flat assembler.

Index > Heap > make program more smarter by skipping obvious?

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 8904
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
i thought about this very recently,

eg.
x = a picture file
calcxmajorcolor a function that return major color code (eg 12 choices) with x as input

we could, calculate hash or etc lightweight hash on return of calcxmajorcolor then proceed directly

OR

loop through 12 or (any integer) choices.

consideration,
1. does looping 12 or (any integer) choices faster than running some hash on result and jump direct

2. does it seems stupid to go through 12 choices when we suppose the program should know our choice is the last one?

how to code the "human ability" eg. skipping obvious into computer program?

eg.
a wall fully painted with white color, with a dark or etc non-white regular and irregular shape,
suppose we are asked to calculate rectangular box, circle or etc.

we can almost start counting instead of identifying.

any example of fasm dynamic created function that based on dynamic input?
Post 17 Apr 2015, 19:45
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17284
Location: In your JS exploiting you and your system
revolution
If all our computer memory was CAM (content addressable memory) then there are many things that could be done faster. But how that relates to being "more smarter" I don't know.
Post 17 Apr 2015, 22:57
View user's profile Send private message Visit poster's website Reply with quote
Sean4CC



Joined: 15 Apr 2015
Posts: 14
Sean4CC
There are two meanings to CAM as far as I know. The first is a special type of hardware memory chip. The second is algorithm based recall. That could be as simple as a hash table. The psychology of computer programming has evolved out of writing code on initially very memory constrained systems. Where the greatest sin is to waste memory. If you are willing to use the memory on modern systems you open up a powerful toolbox of options. Even a basic look up table is a way to calculate highly nonlinear functions very rapidly. There are things like Bloom filters that you can do smart things with. Once you start thinking about it you can link it to modern ideas like sparsity in visual data. It is definitely an area weakly explored in computer science. It actually needs more of an engineering mind set than a CS one.
For sure the hardware is far ahead of the ability of humans to use it.
Post 18 Apr 2015, 01:06
View user's profile Send private message Reply with quote
mbr_tsr



Joined: 03 Apr 2011
Posts: 4903
mbr_tsr
Post 14 Jun 2015, 01:25
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.