The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Compression Algorithm wanted
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List

Posts: 1
Registered: 12/11/04
Compression Algorithm wanted
Posted: Jul 17, 1996 1:39 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have the following problem:

A compiled function of mine does frequent writes to a list, constantly churning
out new integers within a certain range. Unfortunately, writing to lists from
inside a compiled function is very slow, so, naturally, I want to reduce the
number of writes. Currently, I am using a method to reduce writes by
expressing consecutive numbers as the digits of an integer (eg. {1,2,3} becomes

Does anyone have a method to "compress" the list of integers, or reduce the
number of writes in any way?

Any help is appreciated. Thanks in advance.

--Jonathan Lee

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.