Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cours
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
algorithmique
cours
Merge requests
!10
Pk
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Pk
pk
into
master
Overview
1
Commits
8
Pipelines
2
Changes
1
1 unresolved thread
Hide all comments
Merged
pierre.kunzli
requested to merge
pk
into
master
3 years ago
Overview
1
Commits
8
Pipelines
2
Changes
1
1 unresolved thread
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
fd386ef4
Prev
Next
Show latest version
1 file
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
fd386ef4
coquille cours 21
· fd386ef4
Pierre Kunzli
authored
3 years ago
slides/cours_21.md
+
4
−
2
Options
@@ -811,14 +811,16 @@ Pour calculer la force sur un corps `c`, on parcourt l'arbre en commençant par
## Écrire le psuedo-code du calcul de la force
\f
ootnotesize
```
C
rien maj_force_sur_etoile(arbre, e, theta)
si est_vide(arbre)
retourne
si est_feuille(arbre) && contient_etoile(
n
) && dans_le_quadrant(arbre.q, e.x)
si est_feuille(arbre) && contient_etoile(
arbre
) && dans_le_quadrant(arbre.q, e.x)
maj_force(e, arbre.e)
sinon si noed_assez_loin(arbre, e, theta)
sinon si noe
u
d_assez_loin(arbre, e, theta)
maj_force(e, arbre.sup_etoile)
sinon
pour enfant dans enfants
Loading