This is in continuation of
Bugs and Cubs.
Twelve prehistoric creatures have been encoded according to the following rule:
u = a e i o u
b = b d f h k l t
c = c m n r s v w
g = g j p q y
So, for example cuccubb would represent mammoth, and bubucbuc would represent kelenken.
Can you solve these?
- bcucucubugc
- cugubugcugbuc
- ubbucuucuc
- cubucucugbuc
- bugbubucuc
- cubugubu
- gbucucubuc
- bgcuccucuucuc
- cbugucuucuc
- cucubucuucuc
- cugububuc
- ccububuc
(In reply to
partial soln - missing 2, 6, 10, 11 by Steven Lord)
labels='ubcg';
sets={'aeiou','bdfhklt','cmnrsvw','gjpqy'};
fid=fopen('c:\words\words.txt');
reps={ ...
'bcucucubugc', ...
'cugubugcugbuc', ...
'ubbucuucuc', ...
'cubucucugbuc', ...
'bugbubucuc', ...
'cubugubu', ...
'gbucucubuc', ...
'bgcuccucuucuc', ...
'cbugucuucuc', ...
'cucubucuucuc', ...
'cugububuc', ...
'ccububuc'};
while ~feof(fid)
w=lower(fgetl(fid));
rep='';
for i=1:length(w)
for j=1:4
if strfind(sets{j},w(i))
rep=[rep labels(j)];
end
end
end
for j=1:length(reps)
if isequal(rep,reps{j})
disp([char(string(j)) ' ' reps{j} ' ' w])
end
end
end
finds
>> bugsAndCubsII
3 ubbucuucuc allosaurus
11 cugububuc capitular
11 cugububuc capitulum
11 cugububuc cogitates
11 cugububuc copulates
12 ccububuc creditor
12 ccububuc crudites
5 bugbubucuc diplodocus
5 bugbubucuc diplotenes
7 gbucucubuc glomerular
7 gbucucubuc glomerules
7 gbucucubuc glomerulus
7 gbucucubuc gluconates
7 gbucucubuc glucosides
7 gbucucubuc glucosidic
5 bugbubucuc leptotenes
6 cubugubu mitigate
11 cugububuc mujahedin
7 gbucucubuc phenacetin
7 gbucucubuc phenacites
7 gbucucubuc phonematic
7 gbucucubuc planimeter
7 gbucucubuc pteranodon
11 cugububuc regelates
11 cugububuc regulates
11 cugububuc regulator
6 cubugubu relegate
12 ccububuc scalades
12 ccububuc scalados
9 cbugucuucuc stegosaurus
6 cubugubu sukiyaki
1 bcucucubugc triceratops
8 bgcuccucuucuc tyrannosaurus
11 cugububuc vegetates
4 cubucucugbuc velociraptor
3 ubbucuucuc allosaurus
6 cubugubu caligula
10 cucubucuucuc ceratosaurus
12 ccububuc crotalus
5 bugbubucuc diplodocus
9 cbugucuucuc stegosaurus
Stripped of irrelevant words and duplicates, and then sorted:
1 bcucucubugc triceratops
3 ubbucuucuc allosaurus
4 cubucucugbuc velociraptor
5 bugbubucuc diplodocus
7 gbucucubuc pteranodon
8 bgcuccucuucuc tyrannosaurus
9 cbugucuucuc stegosaurus
10 cucubucuucuc ceratosaurus
12 ccububuc crotalus
leaving 2, 6 and 11 unidentified. (and I don't know if 12 is actually a solution.)
I see 12 is really smilodon, but 10 has now been identified as ceratosaurus.
|
Posted by Charlie
on 2022-10-07 10:56:29 |