Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. kdtree get_feuille(kdtree arbre,color* colorI){
  2. int couleur = colorI[arbre->axeD];
  3. int mediane = arbre->table->colorSequence[arbre->axeD + arbre->table->dim*arbre->planC];
  4. if(arbre->left_son == NULL) {
  5. return(arbre);
  6. }
  7.  
  8. else {
  9. if( mediane <= couleur ){
  10. return(get_feuille(arbre->right_son,colorI));
  11. }
  12. else{
  13. return(get_feuille(arbre->left_son,colorI));
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement