473,378 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

The Davinci Code

I've unlocked the real Davinci Code, and it turns out it is an
alphabetically backwards suffix sort. I have the source code printed
out here in both C++ and PHP. I devised the algorithm after realizing
that Davinci wrote in mirror writing, because language spelled out
backwards will order lists naturally into rhymes. Just like in Dan
Brown's book's Angel's and Demon's some words are spelled the same
backwards as they are forwards. Well the secret Davinci kept as an
artist, was the code to unlocking the english language through
mnueomics. A person could learn to speak english, or even read, or
learn almost anything, when the knowledge was taught to them in song
and poetry. Sometimes these passages were cryptic to begin with
because they were only used to remind someone of a book that they had
previously read, just like notes are used today.

At the bottom of this post you will find such a cypher. A rhyming
list of adjectives that although incomplete, will surely teach someone
to listen for adjectives and begin to use them! I am going to work on
a simpler list of adjectives that might be more useful in day to day
conversation. You just don't hear these words enough anymore.

This project is hosted at http://www.ckoogle.com

<?php

echo '<form action="index.php" method="post">';
echo '<textarea name="input" cols="12" rows="20">';
echo '</textarea><br>';
echo '<input type="submit" value="Submit">';
echo '</form>';

if( isset( $_POST["input"] )){
$my_array = $_POST["input"];
$my_array=strrev($my_array);
trim($my_array);
$my_array=explode("\n", $my_array);
natcasesort($my_array);
foreach($my_array as $key =$value)
echo strrev($value)." <br />"; //print the array elements

}

?>

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

////////////////////////////////////////
//
// Quick C++ Implementation or Corey White's
// "davinci sort" (which is a basic suffix
// sort).
//
// (c) 2007 Steven Pigeon
// released under GPL 2.0
//

////////////////////////////////////////
//
// introduces special operator< for suffix
// compares
//
struct less_rev: public binary_function<string, string, bool>
{
//////////////////////////////////////
//
// reverses a string
//
inline string _reverse(const string & a) const
{
string temp=a;
reverse(temp.begin(), temp.end() );
return temp;
}

//////////////////////////////////////
//
// compares two strings, in reverse
//
inline bool operator()(const string & a, const string & b) const
{
return _reverse(a) < _reverse(b);
}
};

////////////////////////////////////////
//
// Reads words from stdin/cin and reprint
// them suffix-sorted
//
int main()
{
vector<stringwords; // vector because sort needs random access
iterators
string read;

////////////////////////////
//
// reads from stdin/cin until
// eof
//
while ( getline(cin,read) )
words.push_back(read);

////////////////////////////
//
// uses standard sort algorithm
// but with less_rev
//
sort(words.begin(), words.end(), less_rev() );

////////////////////////////
//
// shows results
//
for (vector<string>::const_iterator i=words.begin();
i!=words.end();
i++)
cout << (*i) << endl;

return 0; // success!
}

Davinci's Alphabetically Backwards
Dictionary Of Rhyming Adjectives

dizzy
witty
diversity
intensity
priority
integrity
similarity
opportunity
unity
eternity
originallity
flexibility
stability
duality
scarcity
capacity
subtlety
nosy
noisy
jittery
rubbery
contrary
arbitrary
evolutionary
preliminary
ordinary
weary
raspy
irony
harmony
brainy
many
stormy
slimy
costly
subsequently
frequently
predominantly
unsightly
imply
wooly
commonly
jolly
incidentally
ugly
lovely
lively
homely
likely
scarcely
friendly
repeatedly
invariably
husky
tricky
panicky
flaky
shaky
worthy
lengthy
intensify
modify
cloudy
bloody
steady
discrepancy
fancy
portray
prefix
narrow
shallow
persist
consist
eldest
vast
revert
alert
excerpt
prompt
concept
adapt
blunt
quaint
faint
subsequent
extent
persistent
consistent
intent
competent
latent
consent
coherent
inherent
different
fragment
silent
prevalent
obedient
ancient
insufficient
precedent
innocent
magnificent
adjacent
irrelevant
instant
unpleasant
pleasant
exuberant
dormant
defiant
arrogant
elegant
redundant
benefit
implicit
uptight
tight
bright
highlight
swift
upset
offset
interpret
distinct
indirect
prospect
select
perfect
interact
impact
glamorous
autonomous
infamous
obnoxious
anxious
envious
cautious
nutritious
curious
victorious
glorious
mysterious
hilarious
suspicious
delicious
precious
vivacious
spontaneous
gorgeous
courageous
outrageous
timelessness
hollwoness
emptiness
nothingness
uniqueness
spotless
helpless
motionless
tatsteless
useless
homeless
nevertheless
nonetheless
voiceless
excess
origins
genesis
surroundings
initiatives
issues
guidelines
outcomes
implies
consequences
funds
labour
occur
metahpor
prior
never
clever
better
former
eager
infer
tender
consider
regular
clear
develop
relationship
steep
overlap
modern
phenomenon
conclusion
distribution
proportion
portion
presumption
notion
intention
condition
distinction
interaction
conservation
innovation
motivation
representation
implementation
orientation
interpretation
duration
migration
integration
cooperation
reverberation
participation
culmination
inclination
speculation
correlation
non-relation
relation
differentiation
dissociation
reciprocation
implications
justification
extension
suspension
opinion
origin
remain
plain
uneven
rotten
chosen
hidden
clean
maximum
minimum
medium
mechanism
dualism
perform
seldom
calm
awful
thoughtful
delightful
doubtful
successful
colorful
powerful
cheerful
wonderful
helpful
beautiful
faithful
meaningful
wasteful
careful
graceful
protocol
interval
rival
mutual
conceptual
eventual
unusual
gradual
dual
fundamental
causal
reversal
cultural
neutral
integral
collateral
external
internal
exceptional
vocational
provisional
optoinal
organisatoinal
marginal
original
minimal
influential
potential
essential
confidential
substantial
initial
spatial
ministerial
crucial
beneficial
ethical
distinguish
diminish
foolish
tough
thorough
prolong
varying
surviving
grieving
ensuing
lasting
supporting
enchanting
resulting
revolting
visiting
fleeting
embarrassing
passing
rising
promising
neighbouring
whispering
thundering
wandering
outgoing
ongoing
governing
deafening
moaning
charming
overwhelming
gleaming
unwilling
appalling
sparkling
blushing
screeching
encouraging
surrounding
corresponding
binding
outstanding
understanding
notwithstanding
succeeding
preceding
misleading
convincing
disturbing
harmonize
antagonize
organize
energize
inquisitive
cognitive
productive
perspective
respective
subjective
innovative
figurative
cooperative
comparative
imaginative
cumulative
successive
passive
massive
defensive
repulsive
decisive
critique
unique
mute
cute
adequate
invigorate
elaborate
integrate
deliberate
anticipate
fortunate
intimate
isolate
correlate
differentiate
inappropriate
intermediate
indicate
diverse
adverse
prose
purpose
oppose
tense
immense
likewise
devise
concise
precise
paraphrase
phase
miniature
measure
unaware
rare
ruotine
determine
examine
outline
gentle
example
principle
hostile
fragile
formibadle
incompatible
compatible
plausible
terrible
credible
uncomfortable
comfortable
unacceptable
suitable
inimitable
respectable
adorable
miserable
considerable
breakable
invariable
agreeable
probable
average
assemblage
exclude
conclude
preclude
inconsequence
consequence
influence
existence
essence
presence
difference
commence
hence
circumstance
predominance
maintenance
resemblance
semblance
forward
awkward
period
method
rapid
solid
splendid
involved
perceived
conceived
relieved
untested
uninterested
accepted
devoted
unprecedented
highlighted
isolated
elated
affiliated
defeated
amused
confused
accused
embarrassed
poised
minimised
inferred
preferred
retired
bewildered
sacred
concerned
condemned
determined
inclined
confined
obtained
frightened
confirmed
ashamed
puzzled
controlled
troubled
invoked
crooked
wicked
varied
modified
specified
hushed
distinguished
diminished
unmatched
unchanged
damaged
exceed
crowded
excluded
provided
balanced
toxic
civic
optimistic
materialistic
fantastic
enthusiastic
frantic
gigantic
aesthetic
energetic
static
intrinsic
symbolic
tragic
melodic

Mar 30 '07 #1
0 1634

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

51
by: Mudge | last post by:
Please, someone, tell me why OO in PHP is better than procedural.
9
by: bigoxygen | last post by:
Hi. I'm using a 3 tier FrontController Design for my web application right now. The problem is that I'm finding to have to duplicate a lot of code for similar functions; for example, listing...
4
by: jason | last post by:
Hello. Newbie on SQL and suffering through this. I have two tables created as such: drop table table1; go drop table table2; go
16
by: Dario de Judicibus | last post by:
I'm getting crazy. Look at this code: #include <string.h> #include <stdio.h> #include <iostream.h> using namespace std ; char ini_code = {0xFF, 0xFE} ; char line_sep = {0x20, 0x28} ;
109
by: Andrew Thompson | last post by:
It seems most people get there JS off web sites, which is entirely logical. But it is also a great pity since most of that code is of such poor quality. I was looking through the JS FAQ for any...
5
by: ED | last post by:
I currently have vba code that ranks employees based on their average job time ordered by their region, zone, and job code. I currently have vba code that will cycle through a query and ranks each...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to...
18
by: Joe Fallon | last post by:
I have some complex logic which is fairly simply to build up into a string. I needed a way to Eval this string and return a Boolean result. This code works fine to achieve that goal. My...
1
by: K.S.Sreeram | last post by:
Hi All, I've started working on a new open source graphics library called DaVinci. DaVinci aims to provide a declarative vector graphics based framework for building GUIs. ...
0
by: CoreyWhite | last post by:
I've unlocked the real Davinci Code, and it turns out it is an alphabetically backwards suffix sort. I have the source code printed out here in both C++ and PHP. I devised the algorithm after...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.