Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NWD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
NWD
Commits
6a3c8525
Commit
6a3c8525
authored
Dec 15, 2014
by
Andrew Cohen
Browse files
Options
Downloads
Patches
Plain Diff
new apps
parent
02ada4fa
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
goWikiFamous.m
+21
-0
21 additions, 0 deletions
goWikiFamous.m
goWikiScientists.m
+1
-2
1 addition, 2 deletions
goWikiScientists.m
results.txt
+64
-0
64 additions, 0 deletions
results.txt
with
86 additions
and
2 deletions
goWikiFamous.m
0 → 100644
+
21
−
0
View file @
6a3c8525
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
);
This diff is collapsed.
Click to expand it.
goWikiScientists.m
+
1
−
2
View file @
6a3c8525
...
...
@@ -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
);
This diff is collapsed.
Click to expand it.
results.txt
+
64
−
0
View file @
6a3c8525
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment