4sarathbabu / iistthesis Goto Github PK
View Code? Open in Web Editor NEWLaTeX Template for Thesis and Reports
License: GNU General Public License v3.0
LaTeX Template for Thesis and Reports
License: GNU General Public License v3.0
Hi,
I am using Texmaker 4.4.1 in Ubuntu 16.04 for my report and I am facing some problem in adding an algorithm. I have written the following code for the algorithm in chapter2.tex:
`\begin{algorithm}[H]
\label{alg:Algo}
\textbf{Input:}{ G = (V, E), BS, E}
\textbf{Output:}{ a balanced tree T to achieve minimum convergecast period}
\textbf{Ensure:}{S
\begin{algorithmic}[1]
\State{B
\State{T
\State{F
\State{$\forall$ b
\State{$\forall$ i
\While{$|F| > 0$}
\State{n
\State{Connect n to b for which W(b)+1 is minimum}
\State{Break ties, if any, randomly}
\State{Update W(b), F and Dist}
\EndWhile
\State{Remove branches b from T with W(b)=0}
\end{algorithmic}
\end{algorithm}`
I have also included the commands \usepackage{float}
, \usepackage{algorithm}
, \usepackage{algpseudocode}
and \usepackage{algorithmicx}
in the doct.tex file. When I build the file using the 'Run' button in Texmaker I get the following 2 errors as seen in the 'Message' Panel:
/usr/share/texlive/texmf-dist/tex/latex/algorithms/algorithm.sty Error line 97 ! LaTeX Error: Command \listofalgorithms already defined.
chapter2.tex Error line 34 ! Missing number, treated as zero.<to be read again>\ALG@b@2@EndWhile@0 \EndWhile
To make sure that the error is not coming from my algorithm code i used the same packages and same code in a separate beamer document and there the code ran as desired.
Please tell me if i am doing something wrong or missing something in order to correct this error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.