Typing names into (say) your cell phone, using the numeric keypad. One or multiple key presses per letter (Multi-tap). If two or more consecutive letters are on the same key, we assess a somewhat arbitrarily chosen penalty of 3.14159 key presses to let the first letter "time out" before the next letter may be entered. Calculate the average number of keypresses per letter to determine the "annoyingness" of typing that name.
ABC DEF GHI JKL MNO PQRS TUV WXYZ
The least annoying names according to this metric are:
1.00 | ada |
1.00 | adam |
1.00 | jada |
1.00 | mat |
1.00 | pam |
1.00 | pat |
1.00 | tad |
1.00 | wat |
1.17 | agatha |
1.17 | amanda |
1.20 | madge |
1.20 | paget |
1.20 | panda |
1.20 | wanda |
1.25 | dana |
1.25 | dawn |
1.25 | gage |
1.25 | maud |
1.25 | page |
1.25 | peta |
1.25 | tate |
1.25 | thad |
ABC DEF GHI JKL MNO PQRS TUV WXYZ
The most annoying names to type are:
4.03 | cissy |
4.04 | russ |
4.04 | suzy |
4.05 | norris |
4.05 | prissy |
4.06 | conor |
4.06 | solomon |
4.06 | sonny |
4.07 | gill |
4.07 | konnor |
4.08 | keefe |
4.23 | sissy |
4.24 | carson |
4.24 | connor |
4.26 | issac |
4.26 | orson |
4.29 | issy |
4.29 | ross |
4.30 | jefferson |
4.46 | kizzy |
4.57 | cass |
4.57 | moss |
4.66 | lizzy |
5.07 | izzy |
5.07 | ozzy |
ABC DEF GHI JKL MNO PQRS TUV WXYZ
The full list is here: yjbtwugy. The list of names were take from Behind the Name: English Names.
It's a modern numerology or gematria.
#! perl -lw
@t=qw/abc def ghi jkl mno pqrs tuv wxyz/;
for(@t){
@F=split//;
for($i=0;$i<@F;++$i){
$s{$F[$i]}=$i+1;
$button{$F[$i]}=$_;
}
}
$penalty=3.14159;
while(<>){
chomp;
$_=lc;
@F=split//;
$x=0;
$prevbutton="";
for(@F){
die "bad $_" unless defined($n=$s{$_});
$x+=$n;
die "bb $_" unless defined($n=$button{$_});
if ($n eq $prevbutton){
$x+=$penalty;
}
$prevbutton=$n;
}
$avg=$x/(scalar@F);
printf"%.2f %s\n",$avg,$_;
}
No comments :
Post a Comment