Skip to content
Snippets Groups Projects

Pk

Merged Pk
1 unresolved thread
Merged pierre.kunzli requested to merge pk into master
1 unresolved thread
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -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
\footnotesize
```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 noeud_assez_loin(arbre, e, theta)
maj_force(e, arbre.sup_etoile)
sinon
pour enfant dans enfants
Loading