Skip to content

Commit

Permalink
Re-index exercises and add README
Browse files Browse the repository at this point in the history
  • Loading branch information
vongvinhtoan committed Jul 29, 2024
1 parent 26a048b commit 5cf84ac
Show file tree
Hide file tree
Showing 11 changed files with 228 additions and 208 deletions.
34 changes: 27 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,27 @@ Hiển thị bảng có kích thước lớn hơn trang văn bản.


<details close>

<summary><strong> Bài tập 8:</strong>
Tạo bảng/ma trận trong đại số tuyến tính (nâng cao)
</summary>

```
Vẽ các bảng/ma trận trong đại số tuyến tính phục vụ cho mục đích mô tả và giải thích.
**Yêu cầu:**
* Tạo được bảng/ma trận trong đại số tuyến tính.
```

**Tham khảo:** [exercise_08.pdf](problemset/exercise_08.pdf) - [solution](problemset/solutions/8.tex)
</details>



<details close>

<summary><strong> Bài tập 9:</strong>
Hình ảnh trong Latex
</summary>

Expand All @@ -205,13 +225,13 @@ Hình ảnh trong Latex
* Đặt hình ảnh tại vị trí chỉ định.
```

**Tham khảo:** [exercise_08.pdf](problemset/exercise_08.pdf) - [solution](problemset/solutions/8.tex)
**Tham khảo:** [exercise_09.pdf](problemset/exercise_09.pdf) - [solution](problemset/solutions/9.tex)
</details>



<details close>
<summary><strong> Bài tập 9:</strong>
<summary><strong> Bài tập 10:</strong>
Chèn mã nguồn vào tài liệu
</summary>

Expand All @@ -223,12 +243,12 @@ Format mã nguồn
* Sử dụng package `listings` để chèn một đoạn mã.
```

**Tham khảo:** [exercise_09.pdf](problemset/exercise_09.pdf) - [solution](problemset/solutions/9.tex)
**Tham khảo:** [exercise_10.pdf](problemset/exercise_10.pdf) - [solution](problemset/solutions/10.tex)
</details>


<details close>
<summary><strong> Bài tập 10:</strong>
<summary><strong> Bài tập 11:</strong>
Làm việc với khoảng cách dòng
</summary>

Expand All @@ -240,12 +260,12 @@ Làm cho mã nguồn hiển thị đẹp hơn.
* Tăng khoảng cách giữa các dòng trong đoạn mã.
```

**Tham khảo:** [exercise_10.pdf](problemset/exercise_10.pdf) - [solution](problemset/solutions/10.tex)
**Tham khảo:** [exercise_11.pdf](problemset/exercise_11.pdf) - [solution](problemset/solutions/11.tex)
</details>


<details close>
<summary><strong> Bài tập 11:</strong>
<summary><strong> Bài tập 12:</strong>
Trích dẫn tài liệu
</summary>

Expand All @@ -259,7 +279,7 @@ Hướng dẫn trích dẫn và danh sách tài liệu tham khảo bằng BibTeX
```

**Tham khảo:** [exercise_11.pdf](problemset/exercise_11.pdf) - [solution](problemset/solutions/11.tex)
**Tham khảo:** [exercise_12.pdf](problemset/exercise_12.pdf) - [solution](problemset/solutions/12.tex)

</details>

Expand Down
Binary file modified problemset/exercise_08.pdf
Binary file not shown.
Binary file modified problemset/exercise_09.pdf
Binary file not shown.
Binary file modified problemset/exercise_10.pdf
Binary file not shown.
Binary file modified problemset/exercise_11.pdf
Binary file not shown.
Binary file modified problemset/exercise_12.pdf
Binary file not shown.
5 changes: 0 additions & 5 deletions problemset/solutions/10.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
\usepackage{graphicx}
\usepackage{listings}
\usepackage{float}
\usepackage{setspace}


\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
Expand Down Expand Up @@ -82,7 +79,6 @@ \subsection{Bài toán 3}
\end{figure}

Mã giả nguồn của thuật toán
\begin{onehalfspace}
\begin{lstlisting}[language=Python]
def sobel_edge_detection(image, filter):
import numpy as np
Expand All @@ -93,5 +89,4 @@ \subsection{Bài toán 3}
gradient_magnitude *= 255.0 / gradient_magnitude.max()
return gradient_magnitude
\end{lstlisting}
\end{onehalfspace}
\end{document}
7 changes: 1 addition & 6 deletions problemset/solutions/11.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
\usepackage{float}
\usepackage{setspace}

\bibliographystyle{ieeetr}

\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}


\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
Expand Down Expand Up @@ -47,8 +45,6 @@
\tableofcontents
\pagebreak
\section{Mô tả bài toán}


\subsection{Bài toán 1}
Dữ liệu được đưa dưới dạng một danh sách các vector $D$ chiều được ký hiệu là: $X = (\vec{x}_1, \vec{x}_2, \ldots, \vec{x}_n)^T$ với $\vec{x}_i \in \mathbb{R}^d$. \\

Expand All @@ -59,7 +55,7 @@ \subsection{Bài toán 1}
\label{congthuc1}
\end{equation}
\subsection{Bài toán 2}
Thầy Dũng muốn tham dự trại hè Pima 2022 ở Cape Town, Nam Phi. Tuy nhiên, do không có đường bay thẳng từ Thành phố Hồ Chí Minh đến Nam Phi nên thầy Dũng phải quá cảnh ở hai thành phố khác. Dựa vào bảng sau đây, hãy giúp thầy Dũng chọn lộ trình bay ít tốn kém nhất. Nguồn bài toán gốc từ bài giảng \cite{graph}.
Thầy Dũng muốn tham dự trại hè Pima 2022 ở Cape Town, Nam Phi. Tuy nhiên, do không có đường bay thẳng từ Thành phố Hồ Chí Minh đến Nam Phi nên thầy Dũng phải quá cảnh ở hai thành phố khác. Dựa vào bảng sau đây, hãy giúp thầy Dũng chọn lộ trình bay ít tốn kém nhất.\\
\begin{table}[h]
\centering
\begin{tabularx}{\linewidth}{|l|X|X|X|X|X|X|X|X|}\hline
Expand Down Expand Up @@ -98,5 +94,4 @@ \subsection{Bài toán 3}
return gradient_magnitude
\end{lstlisting}
\end{onehalfspace}
\bibliography{references}
\end{document}
Loading

0 comments on commit 5cf84ac

Please sign in to comment.