Commit 6a3c8525 authored by Andrew Cohen's avatar Andrew Cohen
Browse files

new apps

parent 02ada4fa
tic
global QueryCache
if isempty(QueryCache)
QueryCache.Queries={};
QueryCache.Count=[];
end
global nQueryCount nCacheCount
nQueryCount=0;
nCacheCount=0;
nobels2014={'Isamu Akasaki', 'Hiroshi Amano', 'Shuji Nakamura','Eric Betzig', 'Stefan W. Hell', 'William E. Moerner'}
physics={'Albert Einstein','Isaac Newton','Stephen Hawking','Nils Bohr','James Maxwell'}
chemistry={'Amedeo Avogadro','Louis Pasteur','Linus Pauling','Robert Boyle'}
idxKey = [ones(1,length(nobels2014)) 2*ones(1,length(physics)) 2*ones(1,length(chemistry))]
[d]=GetDistances([nobels2014,physics,chemistry],idxKey);
idx=getDistancesPairs([nobels2014,physics,chemistry],idxKey);
......@@ -22,8 +22,7 @@ words5={'Darwin','Lamarck','Linnaeus','Mendel'} % biology
idxKey = [ones(1,length(words1)) 2*ones(1,length(words2)) 3*ones(1,length(words3)) 4*ones(1,length(words4)) 5*ones(1,length(words5))]
%
% [d]=GetDistances([words1,words2,words3,words4,words5],idxKey);
[d]=GetDistances([words1,words2,words3,words4,words5],idxKey);
idx=getDistancesPairs([words1,words2,words3,words4,words5],idxKey);
......@@ -478,3 +478,67 @@ GetDistances::(pairs)
Fermat,Hilbert,Godel,Riemann,Gauss,Einstein,Newton,Hawking,Bohr,Maxwell,Boltzmann,Freud,Pavlov,Skinner,Jung,Turing,Lovelace,Knuth,Hopper,Darwin,Lamarck,Linnaeus,Mendel,kGap=1
nQueryCount=277, nCacheCount=1241
nCorrect=22
-------------------------
GetDistances::(multiples) NW=5
2014 12 4 13 7 17.296
Fermat,Hilbert,Godel,Riemann,Gauss,Einstein,Newton,Hawking,Bohr,Maxwell,Boltzmann,Freud,Pavlov,Skinner,Jung,Turing,Lovelace,Knuth,Hopper,Darwin,Lamarck,Linnaeus,Mendel,nQueryCount=607, nCacheCount=2107
[4 0 0 1 0;0 6 0 0 0;0 0 4 0 0;0 0 0 4 0;0 0 0 0 4]
-------------------------
GetDistances::(pairs)
2014 12 4 13 8 18.03
Fermat,Hilbert,Godel,Riemann,Gauss,Einstein,Newton,Hawking,Bohr,Maxwell,Boltzmann,Freud,Pavlov,Skinner,Jung,Turing,Lovelace,Knuth,Hopper,Darwin,Lamarck,Linnaeus,Mendel,kGap=1
nQueryCount=235, nCacheCount=1283
nCorrect=22
-------------------------
GetDistances::(multiples) NW=5
2014 12 4 13 19 55.473
George,Washington,Clooney,Curious,Paul,Revere,Rand,Vitanyi,nQueryCount=70, nCacheCount=250
[4 0;4 0]
-------------------------
GetDistances::(pairs)
2014 12 4 13 20 1.216
George,Washington,Clooney,Curious,Paul,Revere,Rand,Vitanyi,kGap=1
nQueryCount=16, nCacheCount=152
nCorrect=5
-------------------------
GetDistances::(multiples) NW=5
2014 12 12 16 2 19.273
Isamu Akasaki,Hiroshi Amano,Shuji Nakamura,Eric Betzig,Stefan W. Hell,William E. Moerner,Albert Einstein,Isaac Newton,Stephen Hawking,Nils Bohr,James Maxwell,Amedeo Avogadro,Louis Pasteur,Linus Pauling,Robert Boyle,nQueryCount=243, nCacheCount=867
[6 0 0;0 5 0;0 1 3]
-------------------------
GetDistances::(pairs)
2014 12 12 16 2 43.129
Isamu Akasaki,Hiroshi Amano,Shuji Nakamura,Eric Betzig,Stefan W. Hell,William E. Moerner,Albert Einstein,Isaac Newton,Stephen Hawking,Nils Bohr,James Maxwell,Amedeo Avogadro,Louis Pasteur,Linus Pauling,Robert Boyle,kGap=2
nQueryCount=99, nCacheCount=531
nCorrect=12
-------------------------
GetDistances::(multiples) NW=5
2014 12 12 16 3 49.628
Isamu Akasaki,Hiroshi Amano,Shuji Nakamura,Eric Betzig,Stefan W. Hell,William E. Moerner,Albert Einstein,Isaac Newton,Stephen Hawking,Nils Bohr,James Maxwell,Amedeo Avogadro,Louis Pasteur,Linus Pauling,Robert Boyle,nQueryCount=106, nCacheCount=914
[6 0;0 9]
-------------------------
GetDistances::(pairs)
2014 12 12 16 3 52.246
Isamu Akasaki,Hiroshi Amano,Shuji Nakamura,Eric Betzig,Stefan W. Hell,William E. Moerner,Albert Einstein,Isaac Newton,Stephen Hawking,Nils Bohr,James Maxwell,Amedeo Avogadro,Louis Pasteur,Linus Pauling,Robert Boyle,kGap=2
nQueryCount=0, nCacheCount=630
nCorrect=14
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment