Tri Selection tri_selection([],[]). Tri_selection([X],[X]). tri_selection([X,Y|L],[Z|T]) :- minimum([X,Y|L],Z), retirer(Z,[X,Y|L], S) tri_selection(S,T).

Slides:



Advertisements
Similar presentations
Prise de notes collaborative ietherpad.com/lift10-fablabsopeninnovation.
Advertisements

ACTIVITES Le théorème de Thalès. Constructions de points Partager un segment [AB] en 4 parties égales. A B.
1 Grafcet point de vue système. 2 Cliquez pour mise en route 0P 0Z 1V 2V 2V 1 1V 1 1V 2 1Z BPR 0Z 3 0V 1A.
ACTIVITES MENTALES Collège Jean Monnet Préparez-vous !
CONSTRUCTION DE LA SPIRALE DOR. Construire un rectangle dor L1 = 18,3 cm l 1 = 11,3 cm.
Imagine theres no heaven. Imagine quil ny ait pas de paradis. Its easy if you try. Cest facile si tu essaies. No hell below us. Pas denfer sous nous.
Au sujet des autobiographies Les titres en français: L’on emploie les lettres MAJUSCULES uniquement pour le premier mot. (Mon autobiographie) A - change.
Physical description REVIEW. Number … is … Number.. is ……
OÙ HABITES-TU? ?.
Possession avec de It s forbidden to use s en français.
Le beau- père et le demi- frère (step father and step brother )
Friends © 2011 wheresjenny.com Friends Amis. Friends © 2011 wheresjenny.com amis meilleur ami jouer partage étreinte parlant querelles ma je suis est.
Giving directions : let’s recap!. What’s the English for… ?
Imagine wave En recuerdo a JOHN LENNON ( ), cantante y compositor británico, miembro de The Beatles y una de las figuras más importantes de la.
Ndwi est un nuage de connection et de partage entre les individus et les objets. Le but de Ndwi est de faire parler les marocains entre eux, en utilisant.
2.2:Les courants océaniques

Tout sur moi By: Hector Torres. Bonjour-Hello  Hello! My name is Hector.  I am a student at P.S.69 Journey Prep Bonjour! Je me’appelle Hector. Je suis.
Little Red Riding Hood Le petit chaperon rouge Charles Perrault.
United nations /MAP/ TS 18-19/12/2003 Distribution du N-NO 3 [Fleuve Loire (1971 to 1997)]
Les verbes qui se terminent en --ER. regarder to watch parler danser chanter to speak to dance to sing voyager to travel.
Et encore des photos du net… 06/05/20151FIREMAN de CALVI.
1/03/09 De 89 à 98. 1/03/09 De 89 à 98 1/03/09 De 89 à 98.
Collège Jean Monnet ACTIVITES MENTALES Question 1 Quel nombre obtient- on en multipliant 9 par 7 ?
1.AA 1. 2 times as big as France 2. 4 times as big as France 3. 8 times as big as France 4. more than 10 times as big as France Q37- Canada is : Solution.
Dr. Eric Jeltsch F. Ing. en Comp., ULS, DAA_04 1 Breadth First Search s
Des cartes pour comprendre le monde
Minimum Spanning Network: Brute Force Solution
Français II: les notes # en- some/any rules: en goes before the verb in a normal sentence after the verb in affirmative commands with a hyphen.
TOP – DOWN Splay Trees Bottom-up splaying requires traversal from root to the node that is to be splayed, and then rotating back to the root – in other.
MANUTENTION EN UL55 CREATION D’UN QUAI DE DECHARGEMENT

Geometry of R 2 and R 3 Lines and Planes. Point-Normal Form for a Plane R 3 Let P be a point in R 3 and n a nonzero vector. Then the plane that contains.
Classical Ballet Forms. The classical ballets, although they had some elements in common, varied considerably. They ranged from two acts (The Nutcracker)
Organic Chemistry Naming Branched Hydrocarbons 1 st Determine the longest continuous carbon chain CH 3 CH 3 CH 3 -CH 2 -CH 2 -CH-CH -CH--CH 2 –CH 3 CH-CH.
Exemple de PowerPOint Petit exemple de mise en page et animation etc … 28/03/2012.

Unit 5 Possessive Pronoun Review. Choose the best pronoun to complete the sentence. Julien a cheval.
La néphropathie chronique en présence de diabète Canadian Journal of Diabetes Volume 37, Pages S504-S512 (October 2013) DOI: /j.jcjd
la VILLE de CARBONATE Présenté par Matteo, Federico et Soufiane.
No abandones - R. Kipling
。 33 投资环境 3 开阔视野 提升竞争力 。 3 嘉峪关市概况 。 3 。 3 嘉峪关是一座新兴的工业旅游城市,因关得名,因企设市,是长城文化与丝路文化交 汇点,是全国唯一一座以长城关隘命名的城市。嘉峪关关城位于祁连山、黑山之间。 1965 年建市,下辖雄关区、镜铁区、长城区, 全市总面积 2935.
CONSTRUCTION DE LA MEDIATRICE D ’UN SEGMENT. CONSTRUCTION DE LA MEDIATRICE D ’UN SEGMENT A B.
le salon / la salle de séjour
Updating and modernizing the French Manuscripts union catalogue: a collaborative project for enriching and improving the CCFr Manuscripts: innovation and.
Les nombres au-dessus de 1.000
Sr. Véronique is consulting the patients
Copyright © 2006 American Medical Association. All rights reserved.
Snow White et la Magic Frog
Calcul mental. 5ème Questions 1 à 10 : 20 secondes par calcul.
Avoir and Negation French I.
Les Tables de Multiplications
VALORAR NUESTROS ALIMENTOS. SEÑORAS Y PERSONAS EN LA CALLE.
table en pierre : 14 personnes
Les Eaux Usées et Nano-Fer Bio-Synthétisé La biosynthèse du nano - fer Les eaux usées L´eau usée traitée.
Cours de Mécanique Générale Amira Amamou (Assistante universitaire) 1.
LA FÁBULA.
L.O: To learn the classroom vocabulary
Vrai ou faux ? Vrai ou faux? = True or false?.
دليل تكوين الجمعيّات و تسييرها وفق مقتضيات القانون التّونسي
Dynamic Programming Computation of Edit Distance
Year 7 Homework Spring 1.
Group Meeting 10/27/2004.
Demander et dire sa date d’anniversaire.
به نام خدا جبردر ایتالیا
Vrai ou faux ? Vrai ou faux? = True or false?.
La Boutique Del PowerPoint.net
Galerkin discretization
LINEAMIENTOS PARA LA FORMACION DE EQUIPOS CARACTERISTICAS.
Problematique des delais de transmission dans les STI integrant la 5G Systèmesde Transport Intelligent Réseaux Véhiculaires Définition et Standards Applications.
Presentation transcript:

Tri Selection tri_selection([],[]). Tri_selection([X],[X]). tri_selection([X,Y|L],[Z|T]) :- minimum([X,Y|L],Z), retirer(Z,[X,Y|L], S) tri_selection(S,T). minimum([X],X). minimum([X,Y|L], X) :- minimum([Y|L],M), X =< M. minimum([X,Y|L], M) :- minimum([Y|L],M), X > M.

Retirer la première occ de X dans L retirer(X,[],[]). retirer(X,[X|L],L). retirer(X,[U|L],[U|M]):- X\==U, retirer(X,L,M).

Tri insertion triInser([],[]). triInser([X|L1],L2):- triInser(L1,L3), insererTri(X,L3,L2). insererTri(X,[],[X]). insererTri(X,[Y|L1],[Y|L2]):- X>Y, insererTri(X,L1,L2). insererTri(X,[Y|L1],[X,Y|L1]):- X=< Y.

partage(X,L,L1,L2). Spécification: Scinder la liste L en deux liste L1 et L2 tq éléments(L1)<=X < éléments(L2)

tri_rapide([],[]). tri_rapide([P|L],T):- partage(P,L,L1,L2), tri_rapide(L1,T1), tri_rapide(L2,T2), append(T1,[P|T2],T). partage(_,[],[],[]). partage(P,[X|T],[X|U1],U2):- P>X, partage(P,T,U1,U2). partage(P,[X|T],U1,[X|U2]):- P=<X, partage(P,T,U1,U2).