generated from open-education-hub/oer-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the courses no 2,3,4. --------- Co-authored-by: aidanozo <[email protected]> Co-authored-by: Ștefan-Dan Ciocîrlan <[email protected]>
- Loading branch information
1 parent
0734c91
commit d911bb7
Showing
36 changed files
with
1,930 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
\begin{frame} | ||
\frametitle{Information Representation} | ||
\begin{itemize} | ||
\item Decimal | ||
\item Binary | ||
\item Hexadecimal | ||
\end{itemize} | ||
\note{ | ||
} | ||
\end{frame} | ||
|
||
\begin{frame} | ||
\frametitle{Information Representation} | ||
|
||
\begin{table}[h!] | ||
\centering | ||
\scalebox{0.8}{ | ||
\begin{tabular}{|c|c|c|} | ||
\hline | ||
\textbf{Decimal} & \textbf{Binary} & \textbf{Hexadecimal} \\ | ||
\hline | ||
0 & 0000 & 0x0 \\ | ||
1 & 0001 & 0x1 \\ | ||
2 & 0010 & 0x2 \\ | ||
3 & 0011 & 0x3 \\ | ||
4 & 0100 & 0x4 \\ | ||
5 & 0101 & 0x5 \\ | ||
6 & 0110 & 0x6 \\ | ||
7 & 0111 & 0x7 \\ | ||
8 & 1000 & 0x8 \\ | ||
9 & 1001 & 0x9 \\ | ||
10 & 1010 & 0xA \\ | ||
11 & 1011 & 0xB \\ | ||
12 & 1100 & 0xC \\ | ||
13 & 1101 & 0xD \\ | ||
14 & 1110 & 0xE \\ | ||
15 & 1111 & 0xF \\ | ||
\hline | ||
\end{tabular} | ||
} | ||
\caption{Decimal, Binary, and Hexadecimal Values} | ||
\label{tab:binary_decimal_hexadecimal} | ||
\end{table} | ||
|
||
\note{ | ||
} | ||
\end{frame} | ||
|
||
|
||
\begin{frame} | ||
\frametitle{Information Representation} | ||
\end{frame} | ||
|
||
\begin{frame} | ||
\frametitle{Big Endian vs Little Endian} | ||
\begin{itemize} | ||
\item Big Endian | ||
\begin{itemize} | ||
\item Most significant byte first | ||
\item Network byte order | ||
\item Example: 0x12345678 is stored as 0x12 0x34 0x56 0x78 | ||
\end{itemize} | ||
\item Little Endian | ||
\begin{itemize} | ||
\item Least significant byte first | ||
\item Intel byte order | ||
\item Example: 0x12345678 is stored as 0x78 0x56 0x34 0x12 | ||
\end{itemize} | ||
\end{itemize} | ||
\end{frame} | ||
|
||
|
||
|
||
|
||
\begin{frame} | ||
\frametitle{Exam Question} | ||
Given the following hexadecimal number $0x3A2E$ in big endian format, convert it to binary and decimal. | ||
$0x3A2E = 0011\ 1010\ \ 0010\ 1110 = (3 * 16 + 10) * 2^8 + (2 * 16 + 14) = 58 * 256 + 46 = 14894$ | ||
\end{frame} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
%\documentclass[notes,usenames,dvipsnames]{beamer} | ||
%\documentclass[notes]{beamer} % print frame + notes | ||
%\documentclass[notes=only]{beamer} % only notes | ||
\documentclass[usenames,dvipsnames]{beamer} % only frames | ||
\usepackage{pgfpages} | ||
%\setbeameroption{show notes on second screen} | ||
%\setbeameroption{show notes} | ||
%subfigures | ||
\usepackage{caption} | ||
\usepackage{subcaption} | ||
|
||
%tables packages | ||
\usepackage{multirow} | ||
|
||
% math | ||
\usepackage{amsmath} | ||
|
||
% bash command | ||
\usepackage{graphicx} | ||
\usepackage{listings} | ||
% varbatim for ascii figures | ||
\usepackage[T1]{fontenc} | ||
\usepackage[utf8]{inputenc} | ||
%\usepackage{verbatim} | ||
\usepackage{lipsum} % for context | ||
\usepackage{fancyvrb} | ||
\usepackage{varwidth} | ||
|
||
|
||
\newsavebox{\asciigcn} | ||
|
||
% notes prefixed in pympress | ||
\addtobeamertemplate{note page}{}{\thispdfpagelabel{notes:\insertframenumber}} | ||
%theme used | ||
\usetheme{Madrid} | ||
%Information to be included in the title page: | ||
\title[Computer Architecture] %optional | ||
{Computer Architecture} | ||
|
||
\subtitle{Course no. 2 - Information Representation} | ||
|
||
\author[Ștefan-Dan Ciocîrlan] % (optional, for multiple authors) | ||
{} | ||
|
||
\institute[NUSTPB] % (optional) | ||
{ | ||
\inst{}% | ||
National University of Science and Technology\\ | ||
POLITEHNICA Bucharest | ||
} | ||
|
||
\date[NUSTPB 2024] % (optional) | ||
{Computer Architecture} | ||
|
||
\logo{ | ||
\includegraphics[height=0.9cm]{../../media/LOGO_UNSTPB_en.png} | ||
\includegraphics[height=0.9cm]{../../media/logoACSQ.jpeg} | ||
} | ||
|
||
|
||
% Roman numerals | ||
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@} | ||
%split | ||
\usepackage{amsmath} | ||
%colors | ||
%\usepackage[usenames,dvipsnames]{color} %loaded by the dcoument class | ||
%subfigure | ||
\usepackage{subcaption} | ||
% block over block uncover | ||
\setbeamercovered{invisible} | ||
%\setbeamercovered{transparent} | ||
|
||
%extra slide content | ||
\AtBeginSection[] | ||
{ | ||
\begin{frame} | ||
\frametitle{Content} | ||
\tableofcontents[currentsection] | ||
\end{frame} | ||
} | ||
%notes or not | ||
%\setbeamertemplate{note page}[plain] | ||
|
||
\begin{document} | ||
|
||
\frame{\titlepage} | ||
|
||
\section{Information Representation} | ||
\input{intro.tex} | ||
|
||
\section{Textual Representation Systems} | ||
\input{text.tex} | ||
|
||
\section{Number Representation Systems} | ||
\input{number.tex} | ||
|
||
%\section{Image Representation Systems} | ||
%\input{image.tex} | ||
|
||
%\section{Audio Representation Systems} | ||
%\input{audio.tex} | ||
|
||
\section{Q\&A} | ||
\begin{frame} | ||
\end{frame} | ||
|
||
%\begin{frame} | ||
%\frametitle{Table of Contents} | ||
%\tableofcontents | ||
%\end{frame} | ||
|
||
|
||
\end{document} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.