Jump to content

Convert files to Mathematics functions

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
iSaad

iSaad

    Newbie

  • Members
  • Pip
  • 1 posts
Hello.

I dont know anything about hardware process and basic programming language as Assembly. awhile a idea busies my think. i want to know is it thinkable.

is possible that we conversion a file(indeed stack of 0 & 1) to a math function. a function whith different variables, or a specialed function with a universal(total) function for each file. beneficial matrix or others. as whether a 1mb file or 100mb file will abstract with a math function and we can extract any thing with a tiny file.

mathematics hitherto has do very wondrous tasks.

is this possible?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It sounds like what you are looking for is a way to compress files by using a math function.
If you have a specific class of data you want to be able to compress, it could work. If you want something generic, you are dealing with a standard compression program such as 7zip, winzip, winrar, etc. There are very simple and powerful reasons why you cannot guarantee that a compression algorithm (function) will be able to shrink ALL files. Some files will necessarily grow when you attempt to compress them.

Mathematics can do many wonderful things, but violating its own principles isn't one of them.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
manux

manux

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 234 posts
Indeed,
you know iSaad, some mathematicians get paid a fair amount of money to find formulas like that, so far, they think we found some of the most powerful ones, and they cant reduce a 100mb file to a 10kb file :D .

Though, if the data is organised within the file very linearly, its technically possible to greatly reduce something, though it's rarely the case(in pictures, movies for example).

#4
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
Indeed, most video and audio codecs these days are already compressed as part of their standard.

A great example of dramatic reduction is a HD image for a virtual machine. You can shrink a 10gb image to 100kb simply because the file is essentially a chunk of consecutive 0's.

#5
manux

manux

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 234 posts
Well, its sure that if you only use 100kb of a HD it's ridiculous to look at the remaining 0's...

:P