<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Bài tập nhóm cuối kì: Cấu trúc dữ liệu và giải thuật(Gộp nhóm) by Xuân Trường</title>
      <link>https://padlet.com/xtir0307/6vcucmov27lz8vje</link>
      <description>Nguyễn Xuân Trường - Nguyễn Đức Cường -  Nguyễn Viết Việt</description>
      <language>en-us</language>
      <pubDate>2022-01-08 12:53:46 UTC</pubDate>
      <lastBuildDate>2025-07-14 15:19:32 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>- Mô tả thuật toán</title>
         <author>xtir0307</author>
         <link>https://padlet.com/xtir0307/6vcucmov27lz8vje/wish/1982132697</link>
         <description><![CDATA[<div>+ Input: dãy số a, phần tử n<br>+ Output: dãy số đã được sắp xếp tăng dần<br>- Gọi phần tử đầu tiên là l, phần tử cuối cùng là h, chọn 1 phần tử bất kì(ví dụ chọn phần tử cuối cùng) gọi là chốt. Thực hiện so sánh các phần tử với chốt, nếu phần tử lớn hơn chốt thì dịch chuyển qua phải và ngược lại. Sau khi hoàn thành việc so sánh thì ta được mảng mới được chia thành 2 phần&nbsp;được ngăn cách bởi phần tử chốt. Tiếp tục thực hiện duyệt qua 2 mảng con, cứ tiếp tục cho đến khi toàn bộ phần tử trong mảng được duyệt, khi đó ta được dãy số được sắp xếp tăng dần</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-01-09 08:08:32 UTC</pubDate>
         <guid>https://padlet.com/xtir0307/6vcucmov27lz8vje/wish/1982132697</guid>
      </item>
      <item>
         <title>- Cài đặt thuật toán</title>
         <author>xtir0307</author>
         <link>https://padlet.com/xtir0307/6vcucmov27lz8vje/wish/1982132823</link>
         <description><![CDATA[<div>void swap(int &amp;<em>a</em>, int &amp;<em>b</em>)</div><div>{</div><div>&nbsp; &nbsp; &nbsp;int t = <em>a</em>;</div><div>&nbsp; &nbsp; &nbsp;<em>a</em> = <em>b</em>;</div><div>&nbsp; &nbsp; &nbsp;<em>b</em> = t;</div><div>}<br><br>&nbsp;&nbsp;</div><div>int partition (int <em>arr</em>[], int <em>low</em>, int <em>high</em>)</div><div>{</div><div>&nbsp; &nbsp; int pivot = <em>arr</em>[<em>high</em>]; &nbsp;</div><div>&nbsp; &nbsp; int left = <em>low</em>;&nbsp;</div><div>&nbsp; &nbsp; int right = <em>high</em> - 1;</div><div>&nbsp; &nbsp; while(true){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; while(left &lt;= right &amp;&amp; <em>arr</em>[left] &lt; pivot)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;left++;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; while(right &gt;= left &amp;&amp; <em>arr</em>[right] &gt; pivot)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;right--;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (left &gt;= right)&nbsp;<br>               break;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; sw(<em>arr</em>[left], <em>arr</em>[right]);&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; left++;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; right--;&nbsp;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; sw(<em>arr</em>[left], <em>arr</em>[<em>high</em>]);</div><div>&nbsp; &nbsp; return left;&nbsp;</div><div><br></div><div>}</div><div>&nbsp;&nbsp;</div><div>void quickSort(int <em>arr</em>[], int <em>low</em>, int <em>high</em>)</div><div>{</div><div>&nbsp; &nbsp; if (<em>low</em> &lt; <em>high</em>)</div><div>&nbsp; &nbsp; {&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; int index = partition(<em>arr</em>, <em>low</em>, <em>high</em>);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; quickSort(<em>arr</em>, <em>low</em>, index - 1);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; quickSort(<em>arr</em>, index + 1, <em>high</em>);</div><div>&nbsp; &nbsp; }</div><div>}</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-01-09 08:08:52 UTC</pubDate>
         <guid>https://padlet.com/xtir0307/6vcucmov27lz8vje/wish/1982132823</guid>
      </item>
      <item>
         <title>Ví dụ minh họa thực hiện </title>
         <author>xtir0307</author>
         <link>https://padlet.com/xtir0307/6vcucmov27lz8vje/wish/1982139789</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/924806366/cb4c1c67afa45858b1cfc6d211e7f1e5/image.png" />
         <pubDate>2022-01-09 08:23:29 UTC</pubDate>
         <guid>https://padlet.com/xtir0307/6vcucmov27lz8vje/wish/1982139789</guid>
      </item>
      <item>
         <title></title>
         <author>duccuongqn2k2</author>
         <link>https://padlet.com/xtir0307/6vcucmov27lz8vje/wish/1983713377</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1259413561/5d0246e5aed6992820b8db36562f602f/Bai1_QuickSort_Nhom15pdf.pdf" />
         <pubDate>2022-01-10 12:51:34 UTC</pubDate>
         <guid>https://padlet.com/xtir0307/6vcucmov27lz8vje/wish/1983713377</guid>
      </item>
   </channel>
</rss>
