Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 5th, 2005, 4:44 PM   #11
stevengs
Professional Programmer
 
stevengs's Avatar
 
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4 stevengs is on a distinguished road
Quote:
Originally Posted by DaWei
Representations of values of some absolute nature in this base or that base only represent "compression" in terms of the presentation with some particular medium or another. Presenting decimal numbers in binary representation by restraining oneself to the use of two symbols is entirely artificial. "Compressing" information by presenting it in a medium with more available symbols than the actual storage medium has is every bit as artificial and gains only that advantage expressed by the word, "nada." Compression (lossless) is the process of removing redundancy. Reducing one's thought processes by refusing to think is not compression; it's excision.
We've been through this (mis)concept(ion) before, Sane. It is like when a small child squishes his broccoli flat and spreads it out real thin over the plate... it is all still there, no loss of mass, just a new form. Nod to show you understand. I don't know what else is necessary...
__________________
-Steven
"Is this a piece of your brain?" - Basil Fawlty
stevengs is offline   Reply With Quote
Old Dec 5th, 2005, 5:08 PM   #12
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,075
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
Stevengs, I understand that the data is represented in a vaster medium: ascii(256 types) vs. numbers (10 types).

But that's besides the point here... If we are talking about a single-method representation of data such as a word document, a number represents just as many bytes as a character does, 1. So if a compression program that was simply designed to take a document containing a large strand of numbers, and converted it to base 225. It would indeed be "compressed".
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges!
Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download.
Sane is offline   Reply With Quote
Old Dec 5th, 2005, 5:30 PM   #13
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Have you encountered the compressed reality of the term, "BS", versus the just plain ol' wasteful, "Bullshit"???
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 5th, 2005, 5:43 PM   #14
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,075
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
Pardon me?
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges!
Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download.
Sane is offline   Reply With Quote
Old Dec 5th, 2005, 6:49 PM   #15
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You are an intelligent young person. You are uninformed. That post intentionally has things regarding compression in it. Think about it. I am not intentionally denigrating you. If you'd like more detailed expressions, post back. If not, forget it.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers

Last edited by DaWei; Dec 5th, 2005 at 7:06 PM.
DaWei is offline   Reply With Quote
Old Dec 6th, 2005, 5:30 AM   #16
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by DaWei
Have you encountered the compressed reality of the term, "BS", versus the just plain ol' wasteful, "Bullshit"???
Wow that saves like 6 characters from 8! That's great compression David
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Dec 6th, 2005, 9:29 AM   #17
MBirchmeier
Hobbyist Programmer
 
Join Date: Oct 2005
Posts: 211
Rep Power: 4 MBirchmeier is on a distinguished road
The summary of it is if 'saving' the number to pretty much anything other than a text file there is no 'compression' taking place

The binary sequence

0x0110 0100

can either be represented as:
(character) : D
(int) : 100
(hex int) : 64

the (int) type doesn't save any space over (char) unless you're talking screen space.... both are 8 bits in the memory map.

I'm sure I added some confusion to this with my talks earlier...

when using absurdly large numbers storing them in a 'standard' type isn't done, so I offered ways of doing it differently (than ascii strings or base 235 strings), with little regaurd to the original topic.

bah... details

-MBirchmeier
MBirchmeier is offline   Reply With Quote
Old Dec 8th, 2005, 11:34 AM   #18
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
this is a project i did for school(using << hex << && << dec <<):

#include <iostream>
#include <stdlib.h>
#include <iomanip.h>

int main()
{
        
        char capital,small;
                
        for(capital='A',small='a';capital<='Z';capital++,small++)
        {
                cout << capital;
                cout << hex << setw(10) << static_cast < int > (capital);
                cout << dec << setw(10) << static_cast < int > (capital);
                cout << "          " << small;
                cout << hex << setw(10) << static_cast < int > (small);
                cout << dec << setw(10) << static_cast < int > (small) << endl;
        }
        
        
        return 0;
}

seems to be easier then these other methods? (in opinion)
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC