Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMAWK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shex04
SMAWK
Commits
c68081bd
Commit
c68081bd
authored
1 month ago
by
shex04
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
70df3742
Branches
main
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
proxy_problem/proxy_explicit_matrix.py
+1
-1
1 addition, 1 deletion
proxy_problem/proxy_explicit_matrix.py
proxy_problem/proxy_smawk_with_lookup.py
+1
-1
1 addition, 1 deletion
proxy_problem/proxy_smawk_with_lookup.py
proxy_problem/proxy_unoptimized.py
+1
-1
1 addition, 1 deletion
proxy_problem/proxy_unoptimized.py
with
3 additions
and
3 deletions
proxy_problem/proxy_explicit_matrix.py
+
1
−
1
View file @
c68081bd
...
...
@@ -75,7 +75,7 @@ def proxy_problem_explicit_matrix(n, m, weights, distances):
if
__name__
==
"
__main__
"
:
# Example values
n
=
7
# Number of nodes (
in
cluding v0)
n
=
7
# Number of nodes (
ex
cluding v0)
m
=
2
# Number of proxies
weights
=
[
10
,
15
,
20
,
25
,
5
,
8
,
30
]
# Weights of the nodes
distances
=
[
2
,
3
,
5
,
4
,
1
,
3
,
2
]
# Distances between consecutive nodes
...
...
This diff is collapsed.
Click to expand it.
proxy_problem/proxy_smawk_with_lookup.py
+
1
−
1
View file @
c68081bd
...
...
@@ -72,7 +72,7 @@ def proxy_problem(n, m, weights, distances):
if
__name__
==
"
__main__
"
:
# Example values
n
=
7
# Number of nodes (
in
cluding v0)
n
=
7
# Number of nodes (
ex
cluding v0)
m
=
2
# Number of proxies
weights
=
[
10
,
15
,
20
,
25
,
5
,
8
,
30
]
# Weights of the nodes
distances
=
[
2
,
3
,
5
,
4
,
1
,
3
,
2
]
# Distances between consecutive nodes
...
...
This diff is collapsed.
Click to expand it.
proxy_problem/proxy_unoptimized.py
+
1
−
1
View file @
c68081bd
...
...
@@ -63,7 +63,7 @@ def proxy_problem_unoptimized(n, m, weights, distances):
if
__name__
==
"
__main__
"
:
# Example values
n
=
7
# Number of nodes (
in
cluding v0)
n
=
7
# Number of nodes (
ex
cluding v0)
m
=
2
# Number of proxies
weights
=
[
10
,
15
,
20
,
25
,
5
,
8
,
30
]
# Weights of the nodes
distances
=
[
2
,
3
,
5
,
4
,
1
,
3
,
2
]
# Distances between consecutive nodes
...
...
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
register
or
sign in
to comment