Author Topic: The best list compression method?  (Read 8352 times)

0 Members and 2 Guests are viewing this topic.

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: The best list compression method?
« Reply #15 on: November 29, 2009, 06:06:42 am »
If you store your list as a string to one of the sequence variables, u, v, w, you can half the size of the entire thing.
Then, if you need to evaluate it, run 'u' and Ans(X where X is the list element.

The only issue with this is the lack of editability if that's a word.
That's neat.

I don't use complex numbers for compression because I don't see anyway to make things smaller with them. :)
Use also the fraccional part of imaginary part?
You can save 4 integer numbers in every element.

Other thing to compress is if you use number smaller than 1000 you can save like this:
E3A+B

To decompress:
int(L1(1)/E3)->A
L1(1)-E3A->B

where the E is the small E. A and B to numbers to save and are smaller than 1000.

This could allow easily 8 numbers in one element...
Hobbing in calculator projects.

Offline mapar007

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 550
  • Rating: +28/-5
  • The Great Mata Mata
    • View Profile
Re: The best list compression method?
« Reply #16 on: November 29, 2009, 06:58:30 am »
Complex/real hardly makes any difference, you only save a VAT entry and you sacrifice speed.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: The best list compression method?
« Reply #17 on: November 29, 2009, 09:21:56 am »
Use also the fraccional part of imaginary part?
You can save 4 integer numbers in every element.

Other thing to compress is if you use number smaller than 1000 you can save like this:
E3A+B

To decompress:
int(L1(1)/E3)->A
L1(1)-E3A->B

where the E is the small E. A and B to numbers to save and are smaller than 1000.

This could allow easily 8 numbers in one element...

The only exceptions I would see with this is the values for HP, Max HP, SP, and Max SP.
Any way to get around that?
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: The best list compression method?
« Reply #18 on: November 29, 2009, 10:25:53 am »
Other thing to compress is if you use number smaller than 1000 you can save like this:
E3A+B

To decompress:
int(L1(1)/E3)->A
L1(1)-E3A->B

where the E is the small E. A and B to numbers to save and are smaller than 1000.

This could allow easily 8 numbers in one element...
This is the method I use most often.  Again, I use it with real numbers.

Complex/real hardly makes any difference, you only save a VAT entry and you sacrifice speed.
Mapar, I agree with you.  It just sacrifices speed.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: The best list compression method?
« Reply #19 on: November 29, 2009, 11:18:06 am »
However, what about the exceptions?
Like 9999 HP?

I mean, you can only put 14 digits in a displayed line.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: The best list compression method?
« Reply #20 on: November 29, 2009, 12:12:43 pm »
You could do:
1111222333444
(13 digits)
Just make sure you compress and decompress right.  For fpart, I try to only use 13 digits because of floating point errors.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: The best list compression method?
« Reply #21 on: November 29, 2009, 05:50:05 pm »
Hmm.
Intriguing.

I will definitely use that method in the game.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm