Discuss Scratch

FarAwayGames
Scratcher
100+ posts

Reading Data...

I have been working in khan academy, so I thought some people people might be interested in this.
If you want to have data stored in a compact way, try stem and leaf plots. They may work very well for non-speed requiring
i/o reading.

Example: for storing 10 11 13 23 25

just store as:

1|0 1 3 2|3 5

(one character less)

In a more readable form:

1 | 0 1 3 2
2 | 3 5

If you don't get what this means, watch the video on khan academy for stem-leaf plots.

Hardmath123
Scratcher
1000+ posts

Reading Data...

Look up Huffman encoding.
jgatcomb
Scratcher
90 posts

Reading Data...

Hardmath123 wrote:

Look up Huffman encoding.

Does Scratch allow you to use extended ascii (characters with the high bit set)?

Cheers,
Joshua
FarAwayGames
Scratcher
100+ posts

Reading Data...

Hardmath123 wrote:

Look up Huffman encoding.

Cool! Thanks… But the way scratch stores data, binary isn't any smaller. ;( It would work in something like Java! ;D

Powered by DjangoBB