
\documentclass[12pt,letterpaper, twoside]{article}
%\usepackage[active]{srcltx}
\usepackage[english]{babel}
\usepackage{subfigure}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{verbatim}
\usepackage{algorithmic}
\usepackage[ruled]{algorithm}
%\DeclareGraphicsExtensions{.eps} \graphicspath{{images/}}
\usepackage{fancyhdr}
\renewcommand{\baselinestretch}{1.10}


%%---------------------------------------------------------------------------
%%      Margins:
%%---------------------------------------------------------------------------
\oddsidemargin  0in \evensidemargin 0in \topmargin -0.5in
\headheight 0.25in \headsep 0.25in
\textwidth   6.5in \textheight 9in %\marginparsep 0pt \marginparwidth 0pt
\parskip 1.5ex  \parindent 0ex \footskip 20pt

%%---------------------------------------------------------------------------
%%      Fonts:
%%---------------------------------------------------------------------------
\newfont{\bssten}{cmssbx10}
\newfont{\bssnine}{cmssbx10 scaled 900}
\newfont{\bssdoz}{cmssbx10 scaled 1200}

%%---------------------------------------------------------------------------
%%      header:
%%---------------------------------------------------------------------------
\pagestyle{fancy}  % use this?
 \fancyhead{\bssnine CME 305: Discrete Mathematics and Algorithms - Lecture \arabic{lecture}}
 \fancyhead[RE]{} \fancyhead[LO]{}
 \fancyhead[LE]{\bssnine \arabic{page}} \fancyhead[RO]{\bssnine \arabic{page}}
 \lfoot{} \cfoot{} \rfoot{}                                          %


%%---------------------------------------------------------------------------
%%      "Alternate sectioning"
%%---------------------------------------------------------------------------

\newcounter{topic} \setcounter{topic}{0}
\newcommand{\topic}[1]{\par \refstepcounter{topic} \vs{2ex} {\bssdoz \arabic{topic}.~ #1} \par \vs{1ex}}


%%---------------------------------------------------------------------------
%%      Theorems and other environments:
%%---------------------------------------------------------------------------
\newtheorem{thm}{Theorem}%[lecture]
\newtheorem{prop}{Proposition}%[lecture]
\newtheorem{lemma}{Lemma}%[lecture]
\newtheorem{result}{Result}%[lecture]
\newtheorem{cor}{Corollary}%[lecture]
\newtheorem{obs}{Observation}%[lecture]
\newtheorem{claim}{Claim}%[lecture]
\newenvironment{proof}{{\bf Proof:}}{\hfill\rule{2mm}{2mm}}
\newcounter{example}
%\newenvironment{example}[1][]
% {\refstepcounter{example}{\bf Example~\arabic{example}~#1}}{}
 \renewcommand{\theexample}{\arabic{example}}
\newcounter{problem}
\newenvironment{problem}[1][]
 {\refstepcounter{problem}{\bf Problem~\arabic{lecture}.\arabic{problem}~#1}}{}
 \renewcommand{\theproblem}{\arabic{lecture}.\arabic{problem}}
%\newcounter{definition}
%\newenvironment{definition}[1][]
% {\refstepcounter{definition}{\bf Definition~\arabic{definition}~#1}}{}
% \renewcommand{\thedefinition}{\arabic{definition}}
\newenvironment{definition}[1][]
 {{\bf Definition:~~#1}}{}
\newenvironment{remark}[1][]
 {{\bf Remark:~~#1}}{}
\newenvironment{example}[1][]
 {{\bf Example:~~#1}}{}

%\renewcommand{\thedefinition}{\arabic{definition}}

%\newcounter{claim}
%\newenvironment{claim}[1][]
% {{\bf Claim:}}{}
%\renewcommand{\thedefinition}{\arabic{definition}}
%\newcounter{algorithm}
%\newenvironment{algorithm}[1][]
% {\refstepcounter{algorithm}{\bf Algorithm:~~(#1)}}{}
 %\renewcommand{\thedefinition}{\arabic{algorithm}}


%%-----------------------------------------------------------------------------
%% Definitions and notation
%%-----------------------------------------------------------------------------

\newcommand{\REALS}{I \hspace*{-0.8ex} R}                         %%reals
\newcommand{\NATURALS}{I \hspace*{-0.8ex} N}                      %%naturals
\newcommand{\INTEGERS}{\mathsf{Z} \hspace*{-0.95ex} \mathsf{Z}}   %%integers
\newcommand{\tdef}{\triangleq}        %%defined as (equal w/triangle)
\newcommand{\p}{\mathrm{P}}           %%probability
\newcommand{\E}{\mathrm{E}}           %%expectation
\newcommand{\ind}{\perp\!\!\!\!\perp} %%independent
\newcommand{\wconv}{\Longrightarrow}  %%weak convergence
\newcommand{\pconv}{\stackrel{p}{\longrightarrow}}  %%convergence in prob.
\newcommand{\cov}{\mathrm{cov}}       %%covariance
\newcommand{\var}{\mathrm{var}}       %%variance
\newcommand{\MSE}{\mathrm{MSE}}       %%mean square error
\newcommand{\eqdis}{\stackrel{\mathcal{D}}{=}} %%equal in distribution
\newcommand{\approxdis}{\stackrel{\mathcal{D}}{\approx}} %%``approximately equal in distribution''
\newcommand{\eps}{\varepsilon}   %%epsilon

\newcommand{\leqp}{\underset{p}{\leq}}
\newcommand{\geqp}{\underset{p}{\geq}}
\newcommand{\eqp}{\underset{p}{=}}
\newcommand{\X}{\mathcal{X}}



\newcommand{\nti}{$n\to\infty$}
\newcommand{\vs}{\vspace*}
\newcommand{\hs}{\hspace*}
%\newcommand{\comment}[1]{ {\em #1}}%{}
\newcommand{\defn}[1]{{\bf #1}}

%%-----------------------------------------------------------------------------
%%-----------------------------------------------------------------------------
% My definitions of mathematical operators

\DeclareMathOperator*{\argmax}{argmax}                                          \DeclareMathOperator*{\argmin}{argmin}                                          

\begin{document}


%%-----------------------------------------------------------------------------
%% first page header:
\thispagestyle{empty} \vspace*{-0.75in}
{\bssdoz CME 305: Discrete Mathematics and Algorithms}
{\\ \bssten Instructor: Professor Amin Saberi (saberi@stanford.edu)
\\
\thetoday}

\section*{Lecture \arabic{lecture}: \thetitle}
