Skip to content
Snippets Groups Projects
Commit 51b20dd3 authored by Andrew Cohen's avatar Andrew Cohen
Browse files

wiki scientists

parent 3e757678
Branches
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ for i=1:length(words) ...@@ -18,7 +18,7 @@ for i=1:length(words)
end end
d(length(words),length(words))=0; d(length(words),length(words))=0;
d(find(isinf(d)))=3; d(find(isinf(d)))=1.2;
d=Regularize(d); d=Regularize(d);
[kGap Gap S idx] = GapSpectral(d,6,1); [kGap Gap S idx] = GapSpectral(d,6,1);
fprintf('kGap=%d\n',kGap); fprintf('kGap=%d\n',kGap);
......
tic
global QueryCache
if isempty(QueryCache)
QueryCache.Queries={};
QueryCache.Count=[];
end
global nQueryCount nCacheCount
nQueryCount=0;
nCacheCount=0;
words1={'Fermat','Hilbert', 'Godel', 'Riemann','Gauss'} % mathematicians
words2={'Einstein','Newton','Hawking','Bohr','Maxwell','Boltzmann',} %physicists
words3={'Freud','Pavlov','Skinner','Jung'} %psychologists
words4={'Turing','Lovelace','Knuth','Hopper'} % computer scientists
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);
idx=getDistancesPairs([words1,words2,words3,words4,words5],idxKey);
...@@ -374,3 +374,99 @@ GetDistances::(pairs) ...@@ -374,3 +374,99 @@ GetDistances::(pairs)
Barack Obama,Hillary Clinton,John Edwards,Joe Biden,Chris Dodd,Mike Gravel,John McCain,Mitt Romney,Mike Huckabee,Ron Paul,Fred Thompson,Alan Keyes,kGap=2 Barack Obama,Hillary Clinton,John Edwards,Joe Biden,Chris Dodd,Mike Gravel,John McCain,Mitt Romney,Mike Huckabee,Ron Paul,Fred Thompson,Alan Keyes,kGap=2
nQueryCount=66, nCacheCount=330 nQueryCount=66, nCacheCount=330
nCorrect=7 nCorrect=7
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 51 9.376
Pascal,Kolmogorov,Descartes,Einstein,Galileo,Kepler,nQueryCount=37, nCacheCount=155
[3 0;1 2]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 52 50.803
Pascal,Kolmogorov,Bohr,Einstein,Galileo,Kepler,nQueryCount=16, nCacheCount=176
[3 0;0 3]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 53 20.83
Pascal,Kolmogorov,Godel,Einstein,Galileo,Kepler,nQueryCount=16, nCacheCount=176
[3 0;1 2]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 54 51.807
Pascal,Kolmogorov,Godel,Einstein,Galileo,Kepler,Bohr,nQueryCount=22, nCacheCount=230
[2 1;3 1]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 56 19.528
Pascal,Kolmogorov,Godel,Einstein,Newton,Hawking,Bohr,nQueryCount=34, nCacheCount=218
[2 1;2 2]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 57 40.977
Fermat,Kolmogorov,Godel,Einstein,Newton,Hawking,Bohr,nQueryCount=20, nCacheCount=232
[3 0;0 4]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 58 23.537
Fermat,Kolmogorov,Godel,Riemann,Einstein,Newton,Hawking,Bohr,nQueryCount=28, nCacheCount=292
[4 0;0 4]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 16 1 18.892
Fermat,Kolmogorov,Godel,Riemann,Einstein,Newton,Hawking,Bohr,Freud,Pavlov,Skinner,Jung,nQueryCount=95, nCacheCount=649
[4 0 0;0 4 0;0 0 4]
-------------------------
GetDistances::(pairs)
2014 11 20 16 1 55.968
Fermat,Kolmogorov,Godel,Riemann,Einstein,Newton,Hawking,Bohr,Freud,Pavlov,Skinner,Jung,kGap=1
nQueryCount=47, nCacheCount=349
nCorrect=6
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 16 9 50.846
Fermat,Kolmogorov,Godel,Riemann,Einstein,Newton,Hawking,Bohr,Freud,Pavlov,Skinner,Jung,Turing,Lovelace,Knuth,Hopper,nQueryCount=135, nCacheCount=1209
[3 0 0 1;0 4 0 0;0 0 4 0;0 0 0 4]
-------------------------
GetDistances::(multiples) NW=5
2014 11 26 11 56 11.278
Fermat,Hilbert,Godel,Riemann,Gauss,Einstein,Newton,Hawking,Bohr,Maxwell,Boltzmann,Freud,Pavlov,Skinner,Jung,Turing,Lovelace,Knuth,Hopper,Darwin,Lamarck,Linnaeus,Mendel,nQueryCount=601, nCacheCount=2113
[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 11 26 11 58 7.632
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=17
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment