<?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 13:01:52 2026 / +0000  GMT</pubDate>
	<generator>Universal Post Manager 1.1.2 [ www.ProfProjects.com ] </generator>
	<language></language>
	
			<item>
			<title>Corrigé exercice 1 les arbres</title>
			<link>https://icn-isn-boissy.yj.fr/wp/?p=3770</link>
			<pubDate>Wed May 6 13:01:52 2026 / +0000  GMT</pubDate>
			<guid isPermaLink="false">https://icn-isn-boissy.yj.fr/wp/?p=3770</guid>
			<content-encoded><![CDATA[<!-- wp:paragraph -->
<p><strong>Q1</strong> La taille est 9, la hauteur est 4.<br><strong>Q2</strong> 1. G est associé à 1010.<br><strong>Q2</strong> 2. 13 s'écrit 1101 en binaire, c'est donc le nœud I.<br><strong>Q2</strong> 3. Les nœuds les plus en bas sont notés sur bits.<br><strong>Q2</strong> 4. L'arbre de hauteur de taille minimale est l'arbre filiforme, qui est de taille .<br>L'arbre de hauteur de taille maximale est l'arbre complet, qui est de taille . Si est la taille d'un arbre quelconque de taille</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>, on a donc bien $$ h leqslant n leqslant 2^h-1 $$.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>Q3</strong> 1. Tableau : <code>[15, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O]</code> .<br><strong>Q3</strong> 2. Le père du nœud d'indice <code>i</code> a pour indice <code>i//2</code>.</p>
<!-- /wp:paragraph -->

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

<!-- wp:preformatted -->
<pre id="__code_1" class="wp-block-preformatted"></pre>
<!-- /wp:preformatted -->

<!-- wp:code -->
<pre id="__code_1" class="wp-block-code"><code>def recherche(arbre, element):
    i = 1
    while i &lt; len(arbre):
        if arbre&#91;i] == element:
            return True
        if element &lt; arbre&#91;i]:
            i = 2*i # on se place sur le fils gauche
        else:
            i = 2*i +  1 # on se place sur le fils droit
    return False</code></pre>
<!-- /wp:code -->]]></content-encoded>
			<excerpt-encoded><![CDATA[]]></excerpt-encoded>
			<wp-post_id>3770</wp-post_id>
			<wp-post_date>2022-10-14 08:29:04</wp-post_date>
			<wp-post_date_gmt>2022-10-14 06:29:04</wp-post_date_gmt>
				</item>
</upm-export>
