<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Bài Tập Nhóm 8: Bài 2 by Đỗ Tấn Từ</title>
      <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh</link>
      <description>Bài 2: Sắp xếp bằng trộn chuỗi</description>
      <language>en-us</language>
      <pubDate>2020-12-23 13:06:57 UTC</pubDate>
      <lastBuildDate>2024-11-25 03:33:26 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/png/1f3eb.png</url>
      </image>
      <item>
         <title>Đỗ Tấn Từ : 2050531200324</title>
         <author>DoTanTu_2002</author>
         <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1983788807</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2022-01-10 13:32:12 UTC</pubDate>
         <guid>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1983788807</guid>
      </item>
      <item>
         <title>CÙNG NHAU PHÂN TÍCH SẮP XẾP BẰNG TRỘN ĐỐI VỚI CHUỖI</title>
         <author>DoTanTu_2002</author>
         <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985468304</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2022-01-11 07:34:00 UTC</pubDate>
         <guid>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985468304</guid>
      </item>
      <item>
         <title>Giới thiệu thuật toán sắp xếp bằng trộn-Merge Sort (Nguyễn Việt Long: 2050531200223)</title>
         <author>DoTanTu_2002</author>
         <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985469379</link>
         <description><![CDATA[<div>+ <mark>Sắp xếp trộn là thuật toán có độ phức tạp ở mức trung bình và dùng phương pháp chia để trị giống thuật toán sắp xếp nhanh quick sort.</mark><br>+ <mark>Merge sort chia mảng cần sắp xếp thành 2 nửa. Tiếp tục lặp lại việc này ở các nửa mảng đã chia. Sau cùng gộp các nửa đó thành mảng đã sắp xếp. Hàm merge() được sử dụng để gộp hai nửa mảng. Hàm merge(arr, l, m, r) là tiến trình quan trọng nhất sẽ gộp hai nửa mảng thành 1 mảng sắp xếp, các nửa mảng là arr[l…m] và arr[m+1…r] cuối cùng tạo thành mảng đã được sắp xếp</mark><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-01-11 07:34:41 UTC</pubDate>
         <guid>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985469379</guid>
      </item>
      <item>
         <title>Hồ Lê Minh Hoàng (2050531200145)</title>
         <author>DoTanTu_2002</author>
         <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985470813</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2022-01-11 07:35:32 UTC</pubDate>
         <guid>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985470813</guid>
      </item>
      <item>
         <title>Trần Đăng Hào (205141100106)</title>
         <author>DoTanTu_2002</author>
         <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985471244</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2022-01-11 07:35:47 UTC</pubDate>
         <guid>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985471244</guid>
      </item>
      <item>
         <title>Mô tả thuật toán</title>
         <author>DoTanTu_2002</author>
         <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985471506</link>
         <description><![CDATA[<div>Từ một mảng các chuỗi ban đầu , ta chia mảng thành 2 nữa bằng cách lấy (0 + n-1)/2 , tiếp theo ở mỗi nữa sẽ thực hiện so sánh và sắp xếp,<br><br></div><div>Chuỗi sẽ được chia nhỏ để sắp xếp liên tục, đến sau cùng thành 1 mảng sắp xếp&nbsp;<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-01-11 07:35:58 UTC</pubDate>
         <guid>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985471506</guid>
      </item>
      <item>
         <title>Minh họa thuật toán</title>
         <author>DoTanTu_2002</author>
         <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985471809</link>
         <description><![CDATA[<div><strong>Bước 1:<br></strong><br></div><ul><li>Chia dãy cần sắp xếp thành 2 dãy con</li><li>&nbsp;Từ dãy con thu được lại tiếp tục chia thành 2 dãy con nhỏ hơn nữa</li><li>Quá trình phân chia tiếp tục cho đến khi thu được dãy con chỉ còn duy nhất 1 phần tử.</li></ul><div><strong>Bước 2</strong>:<br><br></div><ul><li>Hòa nhập 2 dãy con nhỏ nhất thành dãy con lớn hơn sao cho đúng thứ tự</li><li>Từ hai dãy con lớn hơn lại hòa nhập thành 2 dãy con lớn hơn nữa….</li><li>Quá trình hòa nhập cứ tiếp tục như vậy cho đến khi thu được dãy  ban đầu đã được sắp xếp.</li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1532146540/393c78fa4ce5bd0c764d05601ad21a9a/image.png" />
         <pubDate>2022-01-11 07:36:10 UTC</pubDate>
         <guid>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985471809</guid>
      </item>
      <item>
         <title>Cài đặt thuật toán</title>
         <author>DoTanTu_2002</author>
         <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985472172</link>
         <description><![CDATA[<div><br>Code<br>#include &lt;stdio.h&gt;<br>#include &lt;string.h&gt;<br><br>struct string{<br>	char s[25];<br>};<br><br>void nhapMang(string arr[], int n){<br>	int i;<br>	for(i = 0; i &lt; n; i++){<br>		printf("Nhap Chuoi Thu %d: ", i+1);<br>		fflush(stdin);<br>		gets(arr[i].s);<br>	}<br>}<br><br>void xuatMang(string arr[], int n){<br>	int i;<br>	for (i = 0; i &lt; n;i++){<br>		printf("\t %s",arr[i].s);<br>	}<br>}<br><br>void merge(string arr[], int l, int m, int r)<br>{<br>&nbsp; &nbsp; int i, j, k;<br>&nbsp; &nbsp; int n1 = m - l + 1;<br>&nbsp; &nbsp; int n2 = r - m;<br><br>&nbsp; &nbsp; string L[n1], R[n2];<br><br>&nbsp; &nbsp; for (i = 0; i &lt; n1; i++)<br>&nbsp; &nbsp; &nbsp; &nbsp; strcpy(L[i].s, arr[l + i].s);<br>&nbsp; &nbsp; for (j = 0; j &lt; n2; j++)<br>&nbsp; &nbsp; &nbsp; &nbsp; strcpy(R[j].s, arr[m + 1 + j].s);<br><br>&nbsp; &nbsp; i = 0;<br>&nbsp; &nbsp; j = 0;<br>&nbsp; &nbsp; k = l;<br>&nbsp; &nbsp; while (i &lt; n1 &amp;&amp; j &lt; n2) {<br>&nbsp; &nbsp; &nbsp; &nbsp; if (strcmp(L[i].s, R[j].s) &lt;= 0) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[k] = L[i];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i++;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; else {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[k] = R[j];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; j++;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; k++;<br>&nbsp; &nbsp; }<br><br>&nbsp; &nbsp; while (i &lt; n1) {<br>&nbsp; &nbsp; &nbsp; &nbsp; arr[k] = L[i];<br>&nbsp; &nbsp; &nbsp; &nbsp; i++;<br>&nbsp; &nbsp; &nbsp; &nbsp; k++;<br>&nbsp; &nbsp; }<br><br>&nbsp; &nbsp; while (j &lt; n2) {<br>&nbsp; &nbsp; &nbsp; &nbsp; arr[k] = R[j];<br>&nbsp; &nbsp; &nbsp; &nbsp; j++;<br>&nbsp; &nbsp; &nbsp; &nbsp; k++;<br>&nbsp; &nbsp; }<br>}<br><br>void mergeSort(string arr[], int l, int r)<br>{<br>&nbsp; &nbsp; if (l &lt; r) {<br>&nbsp; &nbsp; &nbsp; &nbsp; int m = l + (r - l) / 2;<br>&nbsp; &nbsp; &nbsp; &nbsp; mergeSort(arr, l, m);<br>&nbsp; &nbsp; &nbsp; &nbsp; mergeSort(arr, m + 1, r);<br>&nbsp; &nbsp; &nbsp; &nbsp; merge(arr, l, m, r);<br>&nbsp; &nbsp; }<br>}<br><br>int main() {<br>	int n;<br>	printf("Nhap So Chuoi Ban Muon Sap Xep: ");<br>	scanf("%d", &amp;n);<br>	string arr[n];<br>	nhapMang(arr, n);<br>	printf("\n\nCac chuoi da nhap vao la: \n");<br>	xuatMang(arr, n);<br>	mergeSort(arr, 0, n - 1);<br>	printf("\n\nCac chuoi sau khi da sap xep la: \n");<br>	xuatMang(arr, n);<br>}</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/925819596/c85c1dd81b58723948e0f79d0630369b/image.png" />
         <pubDate>2022-01-11 07:36:24 UTC</pubDate>
         <guid>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985472172</guid>
      </item>
      <item>
         <title>Thành Viên: Gồm 4 thành viên</title>
         <author>DoTanTu_2002</author>
         <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985706323</link>
         <description><![CDATA[<div>1. &nbsp; Trần Đăng Hào<br>2. &nbsp; Đỗ Tấn Từ<br>3. &nbsp; Hồ Lê Minh Hoàng<br>4.&nbsp; &nbsp; Nguyễn Việt Long<br>--&gt;&gt; Nhóm trưởng: Đỗ Tấn Từ</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-01-11 10:01:37 UTC</pubDate>
         <guid>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985706323</guid>
      </item>
      <item>
         <title>Nhiệm vụ của từng thành viên</title>
         <author>DoTanTu_2002</author>
         <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985706775</link>
         <description><![CDATA[<div>+ <strong>Nguyễn Việt Long</strong>: Giới thiệu về thuật toán sắp xếp trộn-Merge Sort<br>+ <strong>Đỗ Tấn Từ</strong>: Mô tả cách hoạt động của thuật toán <br>+ <strong>Trần Đăng Hào</strong>: Minh họa rõ hơn về cách duyệt mảng và sắp xếp<br>+ <strong>Hồ Lê Minh Hoàng</strong>: Cài đặt thuật toán và in ra màn hình kết quả&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-01-11 10:01:54 UTC</pubDate>
         <guid>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985706775</guid>
      </item>
      <item>
         <title>Cảm ơn cô đã xem bài tập 1 của nhóm 8. Mong cô để lại các ý kiến, để nhóm em có thể bổ sung và hoàn thiện phần làm bài của nhóm mình </title>
         <author>DoTanTu_2002</author>
         <link>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985896303</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://media0.giphy.com/media/MXQmDs1c8oAOVkIYHz/giphy.gif" />
         <pubDate>2022-01-11 12:22:52 UTC</pubDate>
         <guid>https://padlet.com/DoTanTu_2002/70xfhs7ifx8i13zh/wish/1985896303</guid>
      </item>
   </channel>
</rss>
