SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Enthusiast cilverphox's Avatar
    Join Date
    Jan 2005
    Location
    Petoskey, MI
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    your brain can read the unreadable...

    I was trying to explain to a friend how good our brains are at parsing unreadable information and interpretting it into readable information. I found it easier to explain by writing a simple script that examplifies the concept.

    http://php.cilverphox.com/scramble.php

    -Cilverphox

  2. #2
    SitePoint Wizard HarryR's Avatar
    Join Date
    Dec 2004
    Location
    London, UK
    Posts
    1,376
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    I've seen a couple of examples of this before and at times it's really suprised me too.

    Anotherexampleisifyouleaveallthespacesoutandleaveyourbraintofigureoutthewords.

    Writing an application of some sort to decipher that text is a very hard thing to do, but in comparison our own brains can do it on-the-fly as you're reading it.. now thats what I call processing power.

  3. #3
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Somehow it make all tshoe slpeling miakstes seem more tebrollale
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  4. #4
    SitePoint Guru dbevfat's Avatar
    Join Date
    Dec 2004
    Location
    ljubljana, slovenia
    Posts
    684
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the algorithm puts neighbouring characters in long words too much apart

    transparencies = tnneeacrspiras

    i wasnt able to read that immediately. i am not a native english speaker, so that might also be the reason, but i've read everything else.

  5. #5
    SitePoint Enthusiast cilverphox's Avatar
    Join Date
    Jan 2005
    Location
    Petoskey, MI
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by HarryR
    Hi,
    Anotherexampleisifyouleaveallthespacesoutandleaveyourbraintofigureoutthewords.
    I also have seen something along theses lines. I have no problem parsing that phrase, although others would report difficulties.

  6. #6
    SitePoint Enthusiast cilverphox's Avatar
    Join Date
    Jan 2005
    Location
    Petoskey, MI
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dbevfat
    the algorithm puts neighbouring characters in long words too much apart
    You're right! It would seem that for some words, it would be nearly impossible to read. Even a moderatly long word becomes a problem.

    lhgxeaecopirr
    lexicographer.

  7. #7
    SitePoint Wizard HarryR's Avatar
    Join Date
    Dec 2004
    Location
    London, UK
    Posts
    1,376
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi cilverphox,
    Really long words really aren't much of a problem to solve and there are several very effecient methods to do it (this applies to single words only).

    I did some research a while ago to create a single-word anagram solver (I was actually trying to cheat on an online anagram game... and decided the existing software to do this really sucked so I ended up making my own).

    The fastest way I found was to load a large dictionary and count the number of occurences of each letter in the alphabet that appears in the word. This way each word is represented as a 26 byte string (with an extra byte at the beginning that represents the length of the word). Then to find all possible anagrams of a word you would simply do a memcmp against every word in the dictionary and add all the ones that matched to a list.

    When I finished the program it was taking only fractions of milliseconds to find all the anagrams for a word (with various additional optimizations ofcourse). I know I'm a sad git, but after about a week of tweaking I was winning every countdown conundrum in a matter of seconds (british TV show)

  8. #8
    Non-Member
    Join Date
    May 2005
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I love how you call reading a phrase "parsing it", classic stuff

  9. #9
    SitePoint Addict mx2k's Avatar
    Join Date
    Jan 2005
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lexicographer. is not exactly a word for everyday use either. some people might look at it and still think its spelled wrong not to mention having some kind of context in reading those words does help to decipher them as well.

  10. #10
    SitePoint Zealot GWild's Avatar
    Join Date
    May 2005
    Location
    Colorado
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sweatje
    Somehow it make all tshoe slpeling miakstes seem more tebrollale
    If he keeps up the heavy drinking he's never going to get that book finished....
    Lang ist der weg und hart,
    das aus der hoelle fuehrt auf zum licht.


    My Site

  11. #11
    SitePoint Enthusiast cilverphox's Avatar
    Join Date
    Jan 2005
    Location
    Petoskey, MI
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dalechristian
    I love how you call reading a phrase "parsing it", classic stuff.
    yeah, the pun was intended.


    mx2k:
    I randomly pulled that word out of the dictionary (obviously not entirely random). And yes, perhaps some context would make the word readably unreadable .


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •