<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Nhóm 9-Câu1 by Luận Đặng</title>
      <link>https://padlet.com/vanluan0711/Nhom9cau1</link>
      <description>ĐẶNG VĂN LUẬN, NGUYỄN TRÍ ĐỨC, HỒ THỊ ÁI THI, LÊ VĂN CÔNG QUÂN</description>
      <language>en-us</language>
      <pubDate>2022-01-01 08:54:46 UTC</pubDate>
      <lastBuildDate>2025-05-11 16:59:47 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet-uploads.storage.googleapis.com/1259450288/eb9e3ce9c8650b29f8a93e33cc1d6db5/logo_truong_250.png</url>
      </image>
      <item>
         <title>Mô tả thuật toán</title>
         <author>vanluan0711</author>
         <link>https://padlet.com/vanluan0711/Nhom9cau1/wish/1969968364</link>
         <description><![CDATA[<div>-&nbsp; Input: mảng a, số phần tử n, vị trí left (i), vị trí phải (j)<br>-&nbsp; Output: mảng a.<br>-&nbsp; Thuật toán sắp xếp quick sort là một thuật toán chia để trị.<br>+&nbsp; Chọn x = pivot. (chọn phần tử giữa)<br>+ So sánh lần lượt các phần tử từ trái (i=0) vào giữa (pivot) với các phần tử từ phải (j=n)&nbsp; vào giữa. Nếu phần tử bên trái nhỏ hơn x thì lần lượt tăng dần vị trí của phần tử bên trái (i++) cho đến khi a[i] &gt; x. Phần tử bên phải lớn hơn x thì giảm dần vị trí (j--) cho đến khi a[j] &lt; x.<br>+ Nếu i&nbsp; &lt; = j thì đổi chỗ 2 phần tử tại vị trí i và j, đồng thời tăng i (i++) và giảm j (j--).&nbsp;<br>+ Thực hiện cho tới khi i &gt;= j thì dừng lại, chia mảng thành 2 mảng: mảng bên trái x và mảng bên phải x.<br>+Tiếp tục công việc với mỗi mảng con (chọn pivot, phân đoạn).</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-01-01 09:02:36 UTC</pubDate>
         <guid>https://padlet.com/vanluan0711/Nhom9cau1/wish/1969968364</guid>
      </item>
      <item>
         <title>Minh hoạ thuật toán</title>
         <author>vanluan0711</author>
         <link>https://padlet.com/vanluan0711/Nhom9cau1/wish/1969969769</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1259450288/36f6983841e5461c766a62b774757adf/271184668_681180459543077_4905262470844917420_n.jpg" />
         <pubDate>2022-01-01 09:08:07 UTC</pubDate>
         <guid>https://padlet.com/vanluan0711/Nhom9cau1/wish/1969969769</guid>
      </item>
      <item>
         <title>Cài đặt thuật toán</title>
         <author>vanluan0711</author>
         <link>https://padlet.com/vanluan0711/Nhom9cau1/wish/1969974239</link>
         <description><![CDATA[<div>&nbsp;void QuickSort(int a[], int left, int right)<br>{<br>&nbsp; &nbsp;int i,j;<br>&nbsp; &nbsp;int pivot;<br>&nbsp; &nbsp;if(left&lt;right)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;i = left;<br>&nbsp; &nbsp; &nbsp; &nbsp;j = right;<br>&nbsp; &nbsp; &nbsp; &nbsp;pivot = a[(left+right)/2];<br>&nbsp; &nbsp; &nbsp; &nbsp;do<br>&nbsp; &nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while(a[i]&lt;pivot)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i++3;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while(a[j]&gt;pivot)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; j--;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(i&lt;=j)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int tg;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //if(a[i]!=a[j])<br>&nbsp;printf("\nHai so duoc doi la a[%d] = %d va a[%d] = %d",i, a[i],j, a[jl);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tg = a[i];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a[i] = a[j];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a[j] = tg;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; j--;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp;while(i&lt;j);<br>&nbsp; &nbsp; &nbsp; &nbsp;QuickSort (a,i,right); //LEFT -&gt; J<br>&nbsp; &nbsp; &nbsp; &nbsp;QuickSort (a,left,j); //I -&gt; RIGHT<br>&nbsp; &nbsp; &nbsp; }<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-01-01 09:24:50 UTC</pubDate>
         <guid>https://padlet.com/vanluan0711/Nhom9cau1/wish/1969974239</guid>
      </item>
      <item>
         <title>Câu1:Thuật Toán Sắp Xếp Nhanh(Quick Sort)</title>
         <author>vanluan0711</author>
         <link>https://padlet.com/vanluan0711/Nhom9cau1/wish/1982088463</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2022-01-09 06:17:58 UTC</pubDate>
         <guid>https://padlet.com/vanluan0711/Nhom9cau1/wish/1982088463</guid>
      </item>
   </channel>
</rss>
