<?xml version="1.0" encoding="UTF-8"?>

<upm-export>
	<title>Enseignement de l&#039;informatique et du numérique au lycée Boissy d&#039;Anglas</title>
	<link>https://icn-isn-boissy.yj.fr/wp</link>
	<description></description>
	<pubDate>Wed May 6 11:58:48 2026 / +0000  GMT</pubDate>
	<generator>Universal Post Manager 1.1.2 [ www.ProfProjects.com ] </generator>
	<language></language>
	
			<item>
			<title>Corrigé exercice 3 les arbres</title>
			<link>https://icn-isn-boissy.yj.fr/wp/?p=3787</link>
			<pubDate>Wed May 6 11:58:48 2026 / +0000  GMT</pubDate>
			<guid isPermaLink="false">https://icn-isn-boissy.yj.fr/wp/?p=3787</guid>
			<content-encoded><![CDATA[<!-- wp:paragraph -->
<p>Q1a<br>Nombre de nœuds = 7 (taille max pour une hauteur h : 2h - 1 = 1).<br>Q1b<br>profondeur maximale du nœud racine = 4<br>NB : par convention, ici un arbre réduit à un seul nœud est de hauteur 1<br>Q2<br>Taille : 7<br>Hauteur : 3 (par convention h(Δ) = 1)</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":3788,"sizeSlug":"full","linkDestination":"media"} -->
<figure class="wp-block-image size-full"><a href="https://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2022/10/image-1.png"><img src="https://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2022/10/image-1.png" alt="" class="wp-image-3788"/></a></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Q3<br>Taille : 7<br>Hauteur : 4</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":3789,"sizeSlug":"full","linkDestination":"media"} -->
<figure class="wp-block-image size-full"><a href="https://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2022/10/image-2.png"><img src="https://icn-isn-boissy.yj.fr/wp/wp-content/uploads/2022/10/image-2.png" alt="" class="wp-image-3789"/></a></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Q4<br></p>
<!-- /wp:paragraph -->

<!-- wp:code -->
<pre class="wp-block-code"><code>def hauteur(self):
    return self.racine.hauteur()
</code></pre>
<!-- /wp:code -->

<!-- wp:paragraph -->
<p>Q5</p>
<!-- /wp:paragraph -->

<!-- wp:code -->
<pre class="wp-block-code"><code>def taille(self) -> int:
   if self.gauche == None and self.droite == None:
      return 1
   elif self.gauche == None:
      return 1 + self.droite.taille()
   elif self.droite == None:
      return 1 + self.gauche.taille()
   else:
      return 1 + self.gauche.taille() + self.droite.taille()
def taille(self):
   return self.racine.taille()
</code></pre>
<!-- /wp:code -->

<!-- wp:paragraph -->
<p>Q6a<br>2(h-1) – 1 &lt; taille ≤ 2h – 1<br>doù t_min = 2(h-1) – 1<br></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Q6b<br></p>
<!-- /wp:paragraph -->

<!-- wp:code -->
<pre class="wp-block-code"><code>def bien_construit(self) -> bool:
   return 2**(self.racine.hauteur() - 1) - 1 &lt; self.racine.taille() &lt;= 2**self.racine.hauteur() - 1</code></pre>
<!-- /wp:code -->]]></content-encoded>
			<excerpt-encoded><![CDATA[]]></excerpt-encoded>
			<wp-post_id>3787</wp-post_id>
			<wp-post_date>2022-10-14 09:34:46</wp-post_date>
			<wp-post_date_gmt>2022-10-14 07:34:46</wp-post_date_gmt>
				</item>
</upm-export>
