By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,466 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

World Longest Palindrome

P: n/a
Dan Hoey, who had recently graduated, wrote a C program to look for and
construct the following beauty:

A man, a plan, a caret, a ban, a myriad, a sum, a lac, a liar, a hoop,
a pint, a catalpa, a gas, an oil, a bird, a yell, a vat, a caw, a pax,
a wag, a tax, a nay, a ram, a cap, a yam, a gay, a tsar, a wall, a car,
a luger, a ward, a bin, a woman, a vassal, a wolf, a tuna, a nit, a
pall, a fret, a watt, a bay, a daub, a tan, a cab, a datum, a gall, a
hat, a fag, a zap, a say, a jaw, a lay, a wet, a gallop, a tug, a trot,
a trap, a tram, a torr, a caper, a top, a tonk, a toll, a ball, a fair,
a sax, a minim, a tenor, a bass, a passer, a capital, a rut, an amen, a
ted, a cabal, a tang, a sun, an ass, a maw, a sag, a jam, a dam, a sub,
a salt, an axon, a sail, an ad, a wadi, a radian, a room, a rood, a
rip, a tad, a pariah, a revel, a reel, a reed, a pool, a plug, a pin, a
peek, a parabola, a dog, a pat, a cud, a nu, a fan, a pal, a rum, a
nod, an eta, a lag, an eel, a batik, a mug, a mot, a nap, a maxim, a
mood, a leek, a grub, a gob, a gel, a drab, a citadel, a total, a
cedar, a tap, a gag, a rat, a manor, a bar, a gal, a cola, a pap, a
yaw, a tab, a raj, a gab, a nag, a pagan, a bag, a jar, a bat, a way, a
papa, a local, a gar, a baron, a mat, a rag, a gap, a tar, a decal, a
tot, a led, a tic, a bard, a leg, a bog, a burg, a keel, a doom, a mix,
a map, an atom, a gum, a kit, a baleen, a gala, a ten, a don, a mural,
a pan, a faun, a ducat, a pagoda, a lob, a rap, a keep, a nip, a gulp,
a loop, a deer, a leer, a lever, a hair, a pad, a tapir, a door, a
moor, an aid, a raid, a wad, an alias, an ox, an atlas, a bus, a madam,
a jag, a saw, a mass, an anus, a gnat, a lab, a cadet, an em, a
natural, a tip, a caress, a pass, a baronet, a minimax, a sari, a fall,
a ballot, a knot, a pot, a rep, a carrot, a mart, a part, a tort, a
gut, a poll, a gateway, a law, a jay, a sap, a zag, a fat, a hall, a
gamut, a dab, a can, a tabu, a day, a batt, a waterfall, a patina, a
nut, a flow, a lass, a van, a mow, a nib, a draw, a regular, a call, a
war, a stay, a gam, a yap, a cam, a ray, an ax, a tag, a wax, a paw, a
cat, a valley, a drib, a lion, a saga, a plat, a catnip, a pooh, a
rail, a calamus, a dairyman, a bater, a canal-Panama.

Nov 27 '05 #1
Share this Question
Share on Google+
23 Replies


P: n/a
Amar Prakash Tripaithi wrote:
Dan Hoey, who had recently graduated, wrote a C program to look for and
construct the following beauty:

<snip>

While I'm sure that those who have never heard of it will enjoy it:

- just because the program was written in C doesn't make it relevant to
this newsgroup;
- the palindrome quoted was generated in 1984, being news 11 years ago;
- this is not "the world's longest palindrome" by a long shot:
http://www.norvig.com/palindrome-a.html;
- the very concept of "the world's longest palindrome" is dubious, since
palindromes exist that can be extended indefinitely -- additional
restrictions have to be introduced to make it interesting again.

Killjoy, ain't I?

S.
Nov 27 '05 #2

P: n/a
Skarmander wrote:
<snip>
- the palindrome quoted was generated in 1984, being news 11 years ago;


Ouch. Eh, "programmers have computers to count for them"?

Ironic how you always notice this sort of thing 10 seconds after sending
it, but not when you are actually checking it for mistakes before. Curse
you, Murphy!

S.
Nov 27 '05 #3

P: n/a
Skarmander <in*****@dontmailme.com> wrote:
- just because the program was written in C doesn't make it relevant to
this newsgroup;


I would beg to differ and suggest that any C program of reasonable
length is appropriate to post to comp.lang.c, if only to
solicit/elicit comments and feedback. OP, of course, did not do so.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 27 '05 #4

P: n/a
Christopher Benson-Manica wrote:
Skarmander <in*****@dontmailme.com> wrote:

- just because the program was written in C doesn't make it relevant to
this newsgroup;

I would beg to differ and suggest that any C program of reasonable
length is appropriate to post to comp.lang.c, if only to
solicit/elicit comments and feedback. OP, of course, did not do so.

Clarify: "it" refers to the palindrome. I should have been unambiguous.

S.
Nov 27 '05 #5

P: n/a
In article <11**********************@g43g2000cwa.googlegroups .com>,
"Amar Prakash Tripaithi" <tr************@gmail.com> wrote:
Dan Hoey, who had recently graduated, wrote a C program to look for and
construct the following beauty:

A man, a plan, a caret, a ban, a myriad, a sum, a lac, a liar, a hoop,
a pint, a catalpa, a gas, an oil, a bird, a yell, a vat, a caw, a pax,
a wag, a tax, a nay, a ram, a cap, a yam, a gay, a tsar, a wall, a car,
a luger, a ward, a bin, a woman, a vassal, a wolf, a tuna, a nit, a
pall, a fret, a watt, a bay, a daub, a tan, a cab, a datum, a gall, a
hat, a fag, a zap, a say, a jaw, a lay, a wet, a gallop, a tug, a trot,
a trap, a tram, a torr, a caper, a top, a tonk, a toll, a ball, a fair,
a sax, a minim, a tenor, a bass, a passer, a capital, a rut, an amen, a
ted, a cabal, a tang, a sun, an ass, a maw, a sag, a jam, a dam, a sub,
a salt, an axon, a sail, an ad, a wadi, a radian, a room, a rood, a
rip, a tad, a pariah, a revel, a reel, a reed, a pool, a plug, a pin, a
peek, a parabola, a dog, a pat, a cud, a nu, a fan, a pal, a rum, a
nod, an eta, a lag, an eel, a batik, a mug, a mot, a nap, a maxim, a
mood, a leek, a grub, a gob, a gel, a drab, a citadel, a total, a
cedar, a tap, a gag, a rat, a manor, a bar, a gal, a cola, a pap, a
yaw, a tab, a raj, a gab, a nag, a pagan, a bag, a jar, a bat, a way, a
papa, a local, a gar, a baron, a mat, a rag, a gap, a tar, a decal, a
tot, a led, a tic, a bard, a leg, a bog, a burg, a keel, a doom, a mix,
a map, an atom, a gum, a kit, a baleen, a gala, a ten, a don, a mural,
a pan, a faun, a ducat, a pagoda, a lob, a rap, a keep, a nip, a gulp,
a loop, a deer, a leer, a lever, a hair, a pad, a tapir, a door, a
moor, an aid, a raid, a wad, an alias, an ox, an atlas, a bus, a madam,
a jag, a saw, a mass, an anus, a gnat, a lab, a cadet, an em, a
natural, a tip, a caress, a pass, a baronet, a minimax, a sari, a fall,
a ballot, a knot, a pot, a rep, a carrot, a mart, a part, a tort, a
gut, a poll, a gateway, a law, a jay, a sap, a zag, a fat, a hall, a
gamut, a dab, a can, a tabu, a day, a batt, a waterfall, a patina, a
nut, a flow, a lass, a van, a mow, a nib, a draw, a regular, a call, a
war, a stay, a gam, a yap, a cam, a ray, an ax, a tag, a wax, a paw, a
cat, a valley, a drib, a lion, a saga, a plat, a catnip, a pooh, a
rail, a calamus, a dairyman, a bater, a canal-Panama.


This sentence no verb.
Nov 27 '05 #6

P: n/a

"Skarmander" <in*****@dontmailme.com> wrote in message
news:43***********************@news.xs4all.nl...
Skarmander wrote:
<snip>
- the palindrome quoted was generated in 1984, being news 11 years ago;


Ouch. Eh, "programmers have computers to count for them"?

Ironic how you always notice this sort of thing 10 seconds after sending
it, but not when you are actually checking it for mistakes before. Curse
you, Murphy!


10 seconds! In the words of Monty Python - 'your lucky!', I usually notice
my mistakes as I'm hitting the sned button :-)
Nov 27 '05 #7

P: n/a

"pemo" <us***********@gmail.com> wrote in message
news:dm**********@news.ox.ac.uk...

"Skarmander" <in*****@dontmailme.com> wrote in message
news:43***********************@news.xs4all.nl...
Skarmander wrote:
<snip>
- the palindrome quoted was generated in 1984, being news 11 years ago;


Ouch. Eh, "programmers have computers to count for them"?

Ironic how you always notice this sort of thing 10 seconds after sending
it, but not when you are actually checking it for mistakes before. Curse
you, Murphy!


10 seconds! In the words of Monty Python - 'your lucky!', I usually
notice my mistakes as I'm hitting the sned button :-)


sned = send damn it!
Nov 27 '05 #8

P: n/a
"pemo" <us***********@gmail.com> writes:
10 seconds! In the words of Monty Python - 'your lucky!', I usually notice
my mistakes as I'm hitting the sned button :-)


Then did you notice this one: 'your lucky!' ?
^^^^

--
Chris.
Nov 27 '05 #9

P: n/a
"pemo" <us***********@gmail.com> writes:
"pemo" <us***********@gmail.com> wrote in message
news:dm**********@news.ox.ac.uk...

"Skarmander" <in*****@dontmailme.com> wrote in message
news:43***********************@news.xs4all.nl...
Skarmander wrote:
<snip>
- the palindrome quoted was generated in 1984, being news 11 years ago;

Ouch. Eh, "programmers have computers to count for them"?

Ironic how you always notice this sort of thing 10 seconds after sending
it, but not when you are actually checking it for mistakes before. Curse
you, Murphy!


10 seconds! In the words of Monty Python - 'your lucky!', I usually
notice my mistakes as I'm hitting the sned button :-)


sned = send damn it!


You should have left it alone; I assumed "sned" was a deliberate joke,
and based on that I was willing to give you the benefit of the doubt
on "your" as well.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 27 '05 #10

P: n/a

"Keith Thompson" <ks***@mib.org> wrote in message
news:ln************@nuthaus.mib.org...
"pemo" <us***********@gmail.com> writes:
"pemo" <us***********@gmail.com> wrote in message
news:dm**********@news.ox.ac.uk...

"Skarmander" <in*****@dontmailme.com> wrote in message
news:43***********************@news.xs4all.nl...
Skarmander wrote:
<snip>
> - the palindrome quoted was generated in 1984, being news 11 years
> ago;

Ouch. Eh, "programmers have computers to count for them"?

Ironic how you always notice this sort of thing 10 seconds after
sending
it, but not when you are actually checking it for mistakes before.
Curse
you, Murphy!

10 seconds! In the words of Monty Python - 'your lucky!', I usually
notice my mistakes as I'm hitting the sned button :-)


sned = send damn it!


You should have left it alone; I assumed "sned" was a deliberate joke,
and based on that I was willing to give you the benefit of the doubt
on "your" as well.


Well double damn it - the sned was deliberate, whilst the 'your' was just
dyslexia [my excuse for being dumb :-) ]
Nov 27 '05 #11

P: n/a
pemo wrote:
"Keith Thompson" <ks***@mib.org> wrote in message
news:ln************@nuthaus.mib.org...
"pemo" <us***********@gmail.com> writes:
"pemo" <us***********@gmail.com> wrote in message
news:dm**********@news.ox.ac.uk...

"Skarmander" <in*****@dontmailme.com> wrote in message
news:43***********************@news.xs4all.nl. ..

>Skarmander wrote:
><snip>
>
>>- the palindrome quoted was generated in 1984, being news 11 years
>>ago;
>
>Ouch. Eh, "programmers have computers to count for them"?
>
>Ironic how you always notice this sort of thing 10 seconds after
>sending
>it, but not when you are actually checking it for mistakes before.
>Curse
>you, Murphy!

10 seconds! In the words of Monty Python - 'your lucky!', I usually
notice my mistakes as I'm hitting the sned button :-)

sned = send damn it!


You should have left it alone; I assumed "sned" was a deliberate joke,
and based on that I was willing to give you the benefit of the doubt
on "your" as well.

Well double damn it - the sned was deliberate, whilst the 'your' was just
dyslexia [my excuse for being dumb :-) ]

Do not meddle in the affairs of Murphy, for he is subtle and quick to anger.

S.
Nov 27 '05 #12

P: n/a
pemo wrote:
"Keith Thompson" <ks***@mib.org> wrote in message
news:ln************@nuthaus.mib.org...


<snip>
You should have left it alone; I assumed "sned" was a deliberate joke,
and based on that I was willing to give you the benefit of the doubt
on "your" as well.


Well double damn it - the sned was deliberate, whilst the 'your' was just
dyslexia [my excuse for being dumb :-) ]


Dyslexics are not dumb, they just have specific problems. See the old
sig. I've resurrected for the occasion.
--
Flash Gordon
Dyslexic software developer.
At least the compiler ensures I spell variable names consistently wrong.
Nov 27 '05 #13

P: n/a
Flash Gordon said:
pemo wrote:
"Keith Thompson" <ks***@mib.org> wrote in message
news:ln************@nuthaus.mib.org...


<snip>
You should have left it alone; I assumed "sned" was a deliberate joke,
and based on that I was willing to give you the benefit of the doubt
on "your" as well.


Well double damn it - the sned was deliberate, whilst the 'your' was just
dyslexia [my excuse for being dumb :-) ]


Dyslexics are not dumb, they just have specific problems.


To be fair to pemo, he wasn't claiming dyslexics are dumb. He was claiming
(in a light-hearted, self-deprecating manner) to be dumb, and that he uses
dyslexia as a "cover". It's a reasonable cover, actually. After all, a fool
might indeed write "sned" by mistkae, but so might a dyslexic - and so
might a guy with coffee-stains on his keyboard.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Nov 27 '05 #14

P: n/a

"Flash Gordon" <sp**@flash-gordon.me.uk> wrote in message
news:9i************@news.flash-gordon.me.uk...
pemo wrote:
"Keith Thompson" <ks***@mib.org> wrote in message
news:ln************@nuthaus.mib.org...


<snip>
You should have left it alone; I assumed "sned" was a deliberate joke,
and based on that I was willing to give you the benefit of the doubt
on "your" as well.


Well double damn it - the sned was deliberate, whilst the 'your' was just
dyslexia [my excuse for being dumb :-) ]


Dyslexics are not dumb, they just have specific problems. See the old sig.
I've resurrected for the occasion.
--
Flash Gordon
Dyslexic software developer.
At least the compiler ensures I spell variable names consistently wrong.

Dyslexics are not dumb, they just have specific problems.


That's me - but I'll let you decide what problems I have!

Nov 27 '05 #15

P: n/a

"Amar Prakash Tripaithi" <tr************@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Dan Hoey, who had recently graduated, wrote a C program to look for and
construct the following beauty:

A man, a plan, a caret, a ban, a myriad, a sum, a lac, a liar, a hoop,
a pint, a catalpa, a gas, an oil, a bird, a yell, a vat, a caw, a pax,
a wag, a tax, a nay, a ram, a cap, a yam, a gay, a tsar, a wall, a car,
a luger, a ward, a bin, a woman, a vassal, a wolf, a tuna, a nit, a
pall, a fret, a watt, a bay, a daub, a tan, a cab, a datum, a gall, a
hat, a fag, a zap, a say, a jaw, a lay, a wet, a gallop, a tug, a trot,
a trap, a tram, a torr, a caper, a top, a tonk, a toll, a ball, a fair,
a sax, a minim, a tenor, a bass, a passer, a capital, a rut, an amen, a
ted, a cabal, a tang, a sun, an ass, a maw, a sag, a jam, a dam, a sub,
a salt, an axon, a sail, an ad, a wadi, a radian, a room, a rood, a
rip, a tad, a pariah, a revel, a reel, a reed, a pool, a plug, a pin, a
peek, a parabola, a dog, a pat, a cud, a nu, a fan, a pal, a rum, a
nod, an eta, a lag, an eel, a batik, a mug, a mot, a nap, a maxim, a
mood, a leek, a grub, a gob, a gel, a drab, a citadel, a total, a
cedar, a tap, a gag, a rat, a manor, a bar, a gal, a cola, a pap, a
yaw, a tab, a raj, a gab, a nag, a pagan, a bag, a jar, a bat, a way, a
papa, a local, a gar, a baron, a mat, a rag, a gap, a tar, a decal, a
tot, a led, a tic, a bard, a leg, a bog, a burg, a keel, a doom, a mix,
a map, an atom, a gum, a kit, a baleen, a gala, a ten, a don, a mural,
a pan, a faun, a ducat, a pagoda, a lob, a rap, a keep, a nip, a gulp,
a loop, a deer, a leer, a lever, a hair, a pad, a tapir, a door, a
moor, an aid, a raid, a wad, an alias, an ox, an atlas, a bus, a madam,
a jag, a saw, a mass, an anus, a gnat, a lab, a cadet, an em, a
natural, a tip, a caress, a pass, a baronet, a minimax, a sari, a fall,
a ballot, a knot, a pot, a rep, a carrot, a mart, a part, a tort, a
gut, a poll, a gateway, a law, a jay, a sap, a zag, a fat, a hall, a
gamut, a dab, a can, a tabu, a day, a batt, a waterfall, a patina, a
nut, a flow, a lass, a van, a mow, a nib, a draw, a regular, a call, a
war, a stay, a gam, a yap, a cam, a ray, an ax, a tag, a wax, a paw, a
cat, a valley, a drib, a lion, a saga, a plat, a catnip, a pooh, a
rail, a calamus, a dairyman, a bater, a canal-Panama.

Na, it doesn't work

:-)

..amanaP-lanac a ,retab a ,namyriad a ,sumalac a ,liar
a ,hoop a ,pintac a ,talp a ,agas a ,noil a ,bird a ,yellav a ,tac
a ,wap a ,xaw a ,gat a ,xa na ,yar a ,mac a ,pay a ,mag a ,yats a ,raw
a ,llac a ,raluger a ,ward a ,bin a ,wom a ,nav a ,ssal a ,wolf a ,tun
a ,anitap a ,llafretaw a ,ttab a ,yad a ,ubat a ,nac a ,bad a ,tumag
a ,llah a ,taf a ,gaz a ,pas a ,yaj a ,wal a ,yawetag a ,llop a ,tug
a ,trot a ,trap a ,tram a ,torrac a ,per a ,top a ,tonk a ,tollab a
,llaf a ,iras a ,xaminim a ,tenorab a ,ssap a ,sserac a ,pit a ,larutan
a ,me na ,tedac a ,bal a ,tang a ,suna na ,ssam a ,was a ,gaj a
,madam a ,sub a ,salta na ,xo na ,saila na ,daw a ,diar a ,dia na ,room
a ,rood a ,ripat a ,dap a ,riah a ,revel a ,reel a ,reed a ,pool a
,plug a ,pin a ,peek a ,par a ,bol a ,adogap a ,tacud a ,nuaf a ,nap a
,larum a ,nod a ,net a ,alag a ,neelab a ,tik a ,mug a ,mota na ,pam a
,xim a ,mood a ,leek a ,grub a ,gob a ,gel a ,drab a ,cit a ,del a ,tot
a ,laced a ,rat a ,pag a ,gar a ,tam a ,norab a ,rag a ,lacol a ,apap
a ,yaw a ,tab a ,raj a ,gab a ,nagap a ,gan a ,bag a ,jar a ,bat a ,way
a ,pap a ,aloc a ,lag a ,rab a ,ronam a ,tar a ,gag a ,pat a ,radec
a ,latot a ,ledatic a ,bard a ,leg a ,bog a ,burg a ,keel a ,doom
a ,mixam a ,pan a ,tom a ,gum a ,kitab a ,lee na ,gal a ,ate na ,don
a ,mur a ,lap a ,naf a ,un a ,duc a ,tap a ,god a ,alobarap a ,keep
a ,nip a ,gulp a ,loop a ,deer a ,leer a ,lever a ,hairap a ,dat a ,pir
a ,door a ,moor a ,naidar a ,idaw a ,da na ,lias a ,noxa na ,tlas a
,bus a ,mad a ,maj a ,gas a ,wam a ,ssa na ,nus a ,gnat a ,labac a ,det
a ,nema na ,tur a ,latipac a ,ressap a ,ssab a ,ronet a ,minim a ,xas a
,riaf a ,llab a ,llot a ,knot a ,pot a ,repac a ,rrot a ,mart a ,part a
,tort a ,gut a ,pollag a ,tew a ,yal a ,waj a ,yas a ,paz a ,gaf a ,tah
a ,llag a ,mutad a ,bac a ,nat a ,buad a ,yab a ,ttaw a ,terf a ,llap
a ,tin a ,anut a ,flow a ,lassav a ,namow a ,nib a ,draw a ,regul a
,rac a ,llaw a ,rast a ,yag a ,may a ,pac a ,mar a ,yan a ,xat a ,gaw a
,xap a ,wac a ,tav a ,lley a ,drib a ,lio na ,sag a ,aplatac a ,tnip a
,pooh a ,rail a ,cal a ,mus a ,dairym a ,nab a ,terac a ,nalp a ,nam A
Nov 27 '05 #16

P: n/a
Richard Heathfield wrote:
Flash Gordon said:
pemo wrote:
"Keith Thompson" <ks***@mib.org> wrote in message
news:ln************@nuthaus.mib.org... <snip>
You should have left it alone; I assumed "sned" was a deliberate joke,
and based on that I was willing to give you the benefit of the doubt
on "your" as well.
Well double damn it - the sned was deliberate, whilst the 'your' was just
dyslexia [my excuse for being dumb :-) ]

Dyslexics are not dumb, they just have specific problems.


To be fair to pemo, he wasn't claiming dyslexics are dumb. He was claiming
(in a light-hearted, self-deprecating manner) to be dumb,


True
and that he uses
dyslexia as a "cover".
I don't like people using dyslexia as a cover for the simple reason that
people still have to fight for help for their dyslexic children in school.

I do recognise that pemo intended nothing bad, so I'll drop it here.
It's a reasonable cover, actually. After all, a fool
might indeed write "sned" by mistkae, but so might a dyslexic - and so
might a guy with coffee-stains on his keyboard.


Indeed.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Nov 27 '05 #17

P: n/a

"Flash Gordon" <sp**@flash-gordon.me.uk> wrote in message
news:8d************@news.flash-gordon.me.uk...
Richard Heathfield wrote:
Flash Gordon said:
pemo wrote:
"Keith Thompson" <ks***@mib.org> wrote in message
news:ln************@nuthaus.mib.org...
<snip>

> You should have left it alone; I assumed "sned" was a deliberate joke,
> and based on that I was willing to give you the benefit of the doubt
> on "your" as well.
Well double damn it - the sned was deliberate, whilst the 'your' was
just
dyslexia [my excuse for being dumb :-) ]
Dyslexics are not dumb, they just have specific problems.


To be fair to pemo, he wasn't claiming dyslexics are dumb. He was
claiming (in a light-hearted, self-deprecating manner) to be dumb,


True
and that he uses
dyslexia as a "cover".


I don't like people using dyslexia as a cover for the simple reason that
people still have to fight for help for their dyslexic children in school.

I do recognise that pemo intended nothing bad, so I'll drop it here.


Just a note ... I didn't mean anything bad, and indeed, I think (although
I've never been diagnosed) I may be dreadfully dyslexic myself - in my
thinking, writing and esp. my spelling - where I can't usually tell whether
a word is spelled right or wrong for the life of me.

Nov 27 '05 #18

P: n/a
In article <11**********************@g43g2000cwa.googlegroups .com> "Amar Prakash Tripaithi" <tr************@gmail.com> writes:
Dan Hoey, who had recently graduated, wrote a C program to look for and
construct the following beauty:


There are a few errors here. It is not recently that Dan Hoey did graduate.
Second, I do not think that he wrote a program to find the palindrome.
Third, the most beautiful palindrome (in my opinion) was the following
program (back to C) from 1987:

/**/char q='"',*a="*//**/char q='%c',*a=%c%s%c*/};)]d-062[b=]d[b(
rahctup)--d(elihw;)q,a,q,q,2+a,b(ftnirps{)(niam;162=d tni;]162[b,"
,b[261];int d=261;main(){sprintf(b,a+2,q,q,a,q);while(d--)putchar
(b[d]=b[260-d]);}/*c%s%c%=a*,'c%'=q rahc/**//*"=a*,'"'=q rahc/**/

Join the lines together to get a single line, remove the trailing new
line, compile, run and be amazed. (And, yes, 1987, so K&R C.)
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Nov 28 '05 #19

P: n/a
Dik T. Winter said:
In article <11**********************@g43g2000cwa.googlegroups .com> "Amar
Prakash Tripaithi" <tr************@gmail.com> writes:
> Dan Hoey, who had recently graduated, wrote a C program to look for and
> construct the following beauty:
There are a few errors here. It is not recently that Dan Hoey did
graduate.


Note the pluperfect tense: "Dan Hoey, who *had* recently graduated". This
means it could be pretty well anywhen, right back to the dawn of time -
i.e. 1/1/1970. ;-)
Second, I do not think that he wrote a program to find the
palindrome.


According to Peter van der Linden, not only did he write a program, but it
was indeed a C program. In fact, the above text is a direct quote from
"Expert C Programming" by PvdL.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Nov 28 '05 #20

P: n/a
"pemo" <us***********@gmail.com> wrote in message
news:dm**********@news.ox.ac.uk...
Just a note ... I didn't mean anything bad, and indeed, I think (although I've never been diagnosed) I may be dreadfully dyslexic myself - in my
thinking, writing and esp. my spelling - where I can't usually tell whether a word is spelled right or wrong for the life of me.


Not quite the same thing. A dyslexic thinks they are writing the same
thing as everyone else, I believe.
Write d-o-g: odg!

It just doesn't "fire" in the correct order. Maybe they are
"overclocked" and the first letter has a lag-time that the rest of the
letters don't have... [Mabden's Dyslexic Prognosis] Perhaps we can
install a "POST Beep"-type device that lets them know they are running
ahead of themselves.

I don't know much about this problem, but does anyone know if it is
related to ADD, etc. I see people like Tom Arnold who have it, and his
attention span is 1-3 seconds.

I also see people who post to the Internet, and post angry posts (why I
see so mnay angry posts, I can't say)!

--
Mabden

Dec 5 '05 #21

P: n/a
"Dik T. Winter" <Di********@cwi.nl> wrote in message
news:Iq********@cwi.nl...
In article <11**********************@g43g2000cwa.googlegroups .com> "Amar Prakash Tripaithi" <tr************@gmail.com> writes:
> Dan Hoey, who had recently graduated, wrote a C program to look for and > construct the following beauty:


There are a few errors here. It is not recently that Dan Hoey did

graduate. Second, I do not think that he wrote a program to find the palindrome.
Third, the most beautiful palindrome (in my opinion) was the following
program (back to C) from 1987:

/**/char q='"',*a="*//**/char q='%c',*a=%c%s%c*/};)]d-062[b=]d[b(
rahctup)--d(elihw;)q,a,q,q,2+a,b(ftnirps{)(niam;162=d tni;]162[b,"
,b[261];int d=261;main(){sprintf(b,a+2,q,q,a,q);while(d--)putchar
(b[d]=b[260-d]);}/*c%s%c%=a*,'c%'=q rahc/**//*"=a*,'"'=q rahc/**/

Join the lines together to get a single line, remove the trailing new
line, compile, run and be amazed. (And, yes, 1987, so K&R C.)


Yeah, well... too lazy; just tell me what it does.

--
Mabden
Dec 5 '05 #22

P: n/a
Mabden wrote:
"pemo" <us***********@gmail.com> wrote in message
news:dm**********@news.ox.ac.uk...
Just a note ... I didn't mean anything bad, and indeed, I think


(although
I've never been diagnosed) I may be dreadfully dyslexic myself - in my
thinking, writing and esp. my spelling - where I can't usually tell


whether
a word is spelled right or wrong for the life of me.

Not quite the same thing. A dyslexic thinks they are writing the same
thing as everyone else, I believe.
Write d-o-g: odg!

It just doesn't "fire" in the correct order. Maybe they are
"overclocked" and the first letter has a lag-time that the rest of the
letters don't have... [Mabden's Dyslexic Prognosis] Perhaps we can
install a "POST Beep"-type device that lets them know they are running
ahead of themselves.

I don't know much about this problem, but does anyone know if it is
related to ADD, etc. I see people like Tom Arnold who have it, and his
attention span is 1-3 seconds.

I also see people who post to the Internet, and post angry posts (why I
see so mnay angry posts, I can't say)!

Fly Untied

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
Dec 5 '05 #23

P: n/a
"Joe Wright" <jw*****@comcast.net> wrote in message
news:UM******************************@comcast.com. ..
Mabden wrote:
"pemo" <us***********@gmail.com> wrote in message
news:dm**********@news.ox.ac.uk...
Just a note ... I didn't mean anything bad, and indeed, I think


(although
I've never been diagnosed) I may be dreadfully dyslexic myself - in mythinking, writing and esp. my spelling - where I can't usually tell


whether
a word is spelled right or wrong for the life of me.

Not quite the same thing. A dyslexic thinks they are writing the same thing as everyone else, I believe.
Write d-o-g: odg!

It just doesn't "fire" in the correct order. Maybe they are
"overclocked" and the first letter has a lag-time that the rest of the letters don't have... [Mabden's Dyslexic Prognosis] Perhaps we can
install a "POST Beep"-type device that lets them know they are running ahead of themselves.

I don't know much about this problem, but does anyone know if it is
related to ADD, etc. I see people like Tom Arnold who have it, and his attention span is 1-3 seconds.

I also see people who post to the Internet, and post angry posts (why I see so mnay angry posts, I can't say)!

Fly Untied


I had a great "Fly United" T-shirt in high school. It showed two ducks
flying and fucking, but very discreetly. I wore it all the time until my
sister told my mom what it was. It was pretty worn out by then, but she
threw it in the trash...

--
Mabden

Dec 6 '05 #24

This discussion thread is closed

Replies have been disabled for this discussion.