<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>http://wiki.nosdigitais.teia.org.br/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cardinot</id>
	<title>Pontão Nós Digitais - Contribuições do usuário [pt-br]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.nosdigitais.teia.org.br/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cardinot"/>
	<link rel="alternate" type="text/html" href="http://wiki.nosdigitais.teia.org.br/Especial:Contribui%C3%A7%C3%B5es/Cardinot"/>
	<updated>2026-04-21T15:19:33Z</updated>
	<subtitle>Contribuições do usuário</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>http://wiki.nosdigitais.teia.org.br/index.php?title=Projeto_e_Analise_de_Algoritmos&amp;diff=31674</id>
		<title>Projeto e Analise de Algoritmos</title>
		<link rel="alternate" type="text/html" href="http://wiki.nosdigitais.teia.org.br/index.php?title=Projeto_e_Analise_de_Algoritmos&amp;diff=31674"/>
		<updated>2013-07-26T06:37:20Z</updated>

		<summary type="html">&lt;p&gt;Cardinot: /* Duplas p/ Trabalho */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Esta é a pagina principal de um curso de projeto de algoritmos ministrado em 2013 no [http://pt.wikipedia.org/wiki/IPRJ IPRJ]/[http://pt.wikipedia.org/wiki/IPRJ UERJ], de utilidade geral para a formacao de programadores de nivel intermediario e avancado.&lt;br /&gt;
&lt;br /&gt;
'''[[PAA2012|Link para o curso de 2012]]'''&lt;br /&gt;
&lt;br /&gt;
[[Imagem:Grafo-cidades-rj-sp-ms.png|right|550px]]&lt;br /&gt;
== Informacoes gerais ==&lt;br /&gt;
* Instrutor: prof. [http://www.lems.brown.edu/~rfabbri Ricardo Fabbri], Ph.D.&lt;br /&gt;
* Periodo: 1o. Semestre de 2013, voltado ao 7o. periodo de Engenharia da Computacao&lt;br /&gt;
* Tercas e Quintas, 10:40-12:20am, sala 212 e Lab Inf 02&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Pre-requisitos ===&lt;br /&gt;
* Sera assumido um primeiro curso em algoritmos e estruturas de dados, porem nao e' obrigatorio.&lt;br /&gt;
&lt;br /&gt;
== Conteudo aproximado ==&lt;br /&gt;
* Enfase no projeto (design) de algoritmos&lt;br /&gt;
* Enfase em grafos&lt;br /&gt;
* Uso do C++ e' preferivel&lt;br /&gt;
* Enfase no uso do TopCoder para exercicios&lt;br /&gt;
* Algoritmos gulosos / greedy&lt;br /&gt;
* Programacao dinamica&lt;br /&gt;
* Fluxo em redes (Network flows)&lt;br /&gt;
&lt;br /&gt;
== Recursos principais ==&lt;br /&gt;
* Grupo de discussao: [http://uerj.tk uerj.tk]&lt;br /&gt;
=== Bibliografia ===&lt;br /&gt;
* Livro principal: &amp;quot;Algorithm Design&amp;quot; - Jon Kleinberg &amp;amp; Eva Tardos (ver [http://uerj.tk uerj.tk]) http://www.aw-bc.com/info/kleinberg/assets/images/cover.jpg&lt;br /&gt;
** Trata-se do melhor livro para estudar para uma entrevista. O Autor desenvolveu ideias das mais famosas relacionados ao '''PageRank do Google''' [http://citeseer.ist.psu.edu/viewdoc/summary;jsessionid=F4971BF0251DAD6EBF655902AAD9BA17?doi=10.1.1.120.3875]&lt;br /&gt;
* Livro interessante com foco em algoritmos geometricos: [http://books.google.com.br/books?id=Ax50ccq_kFAC&amp;amp;dq=algorithmic+geometry&amp;amp;source=gbs_navlinks_s Algorithmic Geometry]&lt;br /&gt;
&lt;br /&gt;
=== Top Coder ===&lt;br /&gt;
&lt;br /&gt;
* Inicie em http://community.topcoder.com/tc&lt;br /&gt;
* Clique em &amp;quot;Register Now&amp;quot; ou &amp;quot;Login&amp;quot;&lt;br /&gt;
* Clique em '''O(n)''' no canto superior esquerdo para iniciar a Arena http://blog.theroyweb.com/wp-content/uploads/2009/06/topcoderalglink.png&lt;br /&gt;
* No ubuntu linux, abra o nautilus (navegador de arquivo) no diretorio onde foi baixado o ContestAppletProd.jnlp&lt;br /&gt;
* Clique no ContestApplestProd.jnlp com o botao direito do mouse, e selecione &amp;quot;abrir com Java Webstart&amp;quot; ou &amp;quot;Iced Tea&amp;quot;&lt;br /&gt;
** Caso nao tenha essa opcao, instale os pacotes iced-tea* usando o synaptic ou outro gerenciador de pacotes&lt;br /&gt;
* Faca o Login&lt;br /&gt;
* Selecione Practice Rooms -&amp;gt; SRMs  -&amp;gt; problemas Div 1. Os Div 2 sao mais dificeis e deixe-os para depois.&lt;br /&gt;
* Mais informacoes em [http://blog.theroyweb.com/topcoder-quickstart-tutorial Topcoder Quickstart Tutorial]&lt;br /&gt;
* Meu template C++ para o topcoder: http://hera.ethymos.com.br:1080/reacpad/p/paa&lt;br /&gt;
* Veja tambem os Editoriais, em que os melhores programadores explicam as solucoes de alguns SRM's e outras competicoes&lt;br /&gt;
** http://apps.topcoder.com/wiki/display/tc/Algorithm+Problem+Set+Analysis&lt;br /&gt;
&lt;br /&gt;
=== Aulas - Slides ===&lt;br /&gt;
* [http://www.lems.brown.edu/~rfabbri/stuff/01-busca-em-grafos.odp busca em grafos] (atualizado em 8/apr/2012) - cai na P1&lt;br /&gt;
* [http://www.lems.brown.edu/~rfabbri/stuff/02-greedy-etc.odp algoritmos greedy / gulosos] - cai na P1&lt;br /&gt;
* [http://www.lems.brown.edu/~rfabbri/stuff/03-analise-e-divide_and_conquer.odp analise e divide-and-conquer] (atualizado em 20/jun/2012) - cai na P1&lt;br /&gt;
* [http://www.lems.brown.edu/~rfabbri/stuff/04-dynamic-programming.odp dynamic programming / programacao dinamica] (atualizado em 20-26/jun/2013) - cai na P1&lt;br /&gt;
* [http://www.lems.brown.edu/~rfabbri/stuff/05-network-flow.odp network flow / fluxo em redes -- Parte 1] (atualizado em 20/jun/2013) - cai na P2&lt;br /&gt;
* escovando bits&lt;br /&gt;
&lt;br /&gt;
=== Provas ===&lt;br /&gt;
* P1: 27/jun/2013 [http://www.lems.brown.edu/~rfabbri/stuff/prova-p1-PAA2012.pdf (prova anterior: 2012)]&lt;br /&gt;
* P2: &lt;br /&gt;
* Sub/Final:  [http://www.lems.brown.edu/~rfabbri/stuff/prova-sub-PAA2012.pdf (prova anterior: 2012)]&lt;br /&gt;
&lt;br /&gt;
== Recursos adicionais ==&lt;br /&gt;
* [http://www.cs.princeton.edu/~wayne/kleinberg-tardos/ Slides de aula em Princeton]&lt;br /&gt;
* Site de material extra-oficial e troca p2p entre alunos: [http://uerj.tk uerj.tk]&lt;br /&gt;
* [[Lab Macambira]]: grupo de desenvolvedores de software livre e ajuda com Linux e atividades extra-curriculares de programacao.&lt;br /&gt;
** Confira a sala de bate papo no IRC #labmacambira (freenode) [http://labmacambira.sf.net] para discussao sobre software livre, linux, e afins.&lt;br /&gt;
** Para discussoes gerais, podemos criar nossa propria sala de bate-papo, veja #iprj&lt;br /&gt;
** [[Configuring Ubuntu for Programming]]&lt;br /&gt;
&lt;br /&gt;
== Tarefas ==&lt;br /&gt;
'''Somente serao aceitos arquivos eletronicos no formato PDF ou outro formato aberto como .odt'''&lt;br /&gt;
&lt;br /&gt;
As tarefas devem ser formatadas com notacao matematica adequada, preferencialmente em [[Latex]].&lt;br /&gt;
&lt;br /&gt;
Somente serao aceitos arquivos eletronicos no formato PDF ou outro formato aberto como .odt&lt;br /&gt;
&lt;br /&gt;
Quando a tarefa involver qualquer programacao, o aluno devera enviar o codigo fonte. O codigo junto com a documentacao devera estar dentro de um unico diretorio comprimido com .zip ou tar, com o nome do aluno, disciplina e data.&lt;br /&gt;
&lt;br /&gt;
=== Tarefas de 2013 ===&lt;br /&gt;
&lt;br /&gt;
==== Tarefa 1 (em aula) - 2013 ====&lt;br /&gt;
* Enunciado: flood fill algorithm / labirinto&lt;br /&gt;
* Data: primeira aula&lt;br /&gt;
* Alunos que entregaram&lt;br /&gt;
** ((lista pendente))&lt;br /&gt;
&lt;br /&gt;
==== Tarefa 2 - 2013 ====&lt;br /&gt;
* Enunciado: Topological Sort&lt;br /&gt;
* Estudar e comentar o funcionamento do codigo fonte do comando GNU tsort do unix&lt;br /&gt;
* Pesquisar como funciona a arvore utilizada no codigo&lt;br /&gt;
* Note que o algoritmo eh simples mas nao eh trivial de implementar bem&lt;br /&gt;
&lt;br /&gt;
==== Tarefa 3 - 2013 ====&lt;br /&gt;
* Implementar o mergesort&lt;br /&gt;
* Plotar grafico do tempo de execucao minimo, maximo, e medio para diferentes tamanhos de entradas aleatoreas&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Projetos no Top Coder ===&lt;br /&gt;
&lt;br /&gt;
* Criar um login do topcoder (anonimo, so voce sabe)&lt;br /&gt;
* Fazer 2 SRM's (div 1 ou 2) a serem entregues em forma de relatório e apresentados ao professor no futuro. Documente sua solucao (em [[Latex]] de preferencia). &lt;br /&gt;
** Cada aluno deverá escolher um SRM primário, do qual será responsável, e um SRM secundário, em que deverá ajudar um outro aluno.&lt;br /&gt;
** Os SRMs primário deverá ser programado em maior detalhe pelos alunos responáveis, inclusive com pesquisa sobre assuntos que possam ser relevantes&lt;br /&gt;
** Cada aluno irá entregar um relatório e irá fazer um exame oral individual rapido para mostrar que sabe programar os problemas do seus SRMs.&lt;br /&gt;
** Sugestoes para um trabalho bem-feito:&lt;br /&gt;
*** Comente as partes mais obscuras do editorial do seu SRM, se disponivel&lt;br /&gt;
*** Compare sua solucao com a solucao de outro participante mais experiente (um dos primeiros colocados do SRM)&lt;br /&gt;
**** Em que a solucao dele difere da sua? O que ele aparenta ter feito/usado?&lt;br /&gt;
*** Forneca desenhos, diagramas, fluxogramas explicando os conceitos e etapas do algoritmo&lt;br /&gt;
*** Forneca trechos de livros / pesquisa bibliografica de assuntos que mais te interessaram ou que mais foram uteis na solucao de cada problema.&lt;br /&gt;
* Notas&lt;br /&gt;
** Cada trabalho (SRM) terá uma nota final com base na apresentacao oral ao professor e relatorio&lt;br /&gt;
** A nota de cada aluno sera 70% a nota do seu SRM primário mais 30% a nota final do SRM secundário&lt;br /&gt;
** Atencao: O peso deste trabalho poderá suplantar o da P2 caso os alunos estejam de acordo.&lt;br /&gt;
&lt;br /&gt;
==== Duplas p/ Trabalho ====&lt;br /&gt;
* Colocar aqui o nome dos integrantes e o SRM(s) escolhidos (isto pode ser alterado no futuro se desejado)&lt;br /&gt;
* Nao pode haver repeticao de SRMs&lt;br /&gt;
* Evitar repetir os colegas primarios/secundarios (mas se for necessario repetir, tudo bem)&lt;br /&gt;
&lt;br /&gt;
Caio(Primário) e Pedro(Secundário): SRM 145 DIV2&lt;br /&gt;
&lt;br /&gt;
Lucas Oliveira(Primário) e Rafael Erthal(Secundário): SRM 144 DIV2&lt;br /&gt;
&lt;br /&gt;
Gustavo(Primário) e Marcos(Secundário): SRM 147 DIV2&lt;br /&gt;
&lt;br /&gt;
Marcos(Primário) e Gustavo(Secundário): SRM 149 DIV2&lt;br /&gt;
&lt;br /&gt;
Pedro(Primário) e Caio(Secundário): SRM 144 DIV1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Bonus TopCoder ====&lt;br /&gt;
Opcionalmente, pontos extras na media serao concedido a alunos que participarem de SRM's oficiais de acordo com os seguintes criterios:&lt;br /&gt;
* '''Para receber o bonus o aluno tera que obter nota na P1 acima de 6'''&lt;br /&gt;
* Alunos que participarem de um SRM oficial e relatarem os problemas  e solucoes num relatorio curto irao receber ate 1 ponto adicional na media&lt;br /&gt;
* Alunos que competirem entre si e obteve primeiro lugar na sala (num mesmo SRM) irao receber ate 2 pontos adicionais na media, contanto que o numero de participantes da sala seja igual ou maior que 3&lt;br /&gt;
* Alunos que resolverem todos os problemas dentro do tempo oficial do SRM irao obter 3 pontos adicionais na media&lt;br /&gt;
* Alunos que obtiverem top 5 geral no SRM irao passar com media 10&lt;br /&gt;
* '''Voces tem varias chances!'''&lt;br /&gt;
** Calendario de SRMs do topcoder (horario EST de nova yorque) [http://community.topcoder.com/tc?module=Static&amp;amp;d1=calendar&amp;amp;d2=thisMonth]&lt;br /&gt;
&lt;br /&gt;
=== Tarefas de 2012 ===&lt;br /&gt;
&lt;br /&gt;
==== Tarefa 1 (em aula) - 2012 ====&lt;br /&gt;
* Enunciado: flood fill algorithm / labirinto&lt;br /&gt;
* Data: primeira aula&lt;br /&gt;
&lt;br /&gt;
==== Tarefa 2  - 2012 ====&lt;br /&gt;
* Resumir inicio cap 3 do livro de Kleinberg &amp;amp; Tardos, prestando atencao `as aplicacoes&lt;br /&gt;
* Digitar em [[Latex]] de preferencia&lt;br /&gt;
&lt;br /&gt;
==== Tarefa 3 - 2012 ====&lt;br /&gt;
* Enunciado:  BFS pode ser implementado recursivamente? ficaria a implementação?&lt;br /&gt;
&lt;br /&gt;
==== Tarefa 4 - 2012 ====&lt;br /&gt;
* Enunciado: falar sobre lista de adjacência, matriz de adjacência, lista &amp;quot;direta&amp;quot;, matriz de pixels (confirmar)&lt;br /&gt;
&lt;br /&gt;
==== Tarefa 5 - 2012 ====&lt;br /&gt;
* Enunciado: resumo do 4.1, 4.2 e 4.3 (confirmar)&lt;br /&gt;
&lt;br /&gt;
==== Tarefa 6 (em aula) - 2012 ====&lt;br /&gt;
* Enunciado: escovando bits e bytes&lt;br /&gt;
&lt;br /&gt;
==== Apresentacao  - 2012 ====&lt;br /&gt;
* Conteudo: Agendamento de intervalos, algoritmos de cache, estrategias Greedy.&lt;br /&gt;
&lt;br /&gt;
== Criterio de Avaliacao ==&lt;br /&gt;
&lt;br /&gt;
* Trabalhos: 30% da media&lt;br /&gt;
* O criterio final e simplificado ficou (favor avisar se precisar adicionar detalhes ou corrigir no caso de erro/discrepancia):&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
      M_p = (P1 + P2)/2   &lt;br /&gt;
      M = 0.7*M_p + 0.3*T (atualizado de 10% para 30% com acordo dos alunos), onde T é a nota dos trabalhos&lt;br /&gt;
      Se M &amp;gt;= 5, passa --&amp;gt; M&lt;br /&gt;
      Sub: repoe menor de P1, P2 (apenas se alguem faltou alguma prova ou quiser melhorar nota - mas quem entregar ira substituir)&lt;br /&gt;
      M_sub = media com sub&lt;br /&gt;
      Se M_sub &amp;gt;= 5, passou --&amp;gt; M_sub&lt;br /&gt;
&lt;br /&gt;
      Adendo (em acordo com os alunos): a M_sub = M_f pois sera considerada a mesma prova e a prova final nao mas faz efeito real com trabalhos a 30%.  Quem for usar a prova como Sub ira substituir a nota independentemente do resultado.&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* ''A prova final passa a nao ser mais obrigatoria.''&lt;br /&gt;
&lt;br /&gt;
[[Category:IPRJ]] [[Category:Lab Macambira]]&lt;/div&gt;</summary>
		<author><name>Cardinot</name></author>
	</entry>
	<entry>
		<id>http://wiki.nosdigitais.teia.org.br/index.php?title=Scilab&amp;diff=5428</id>
		<title>Scilab</title>
		<link rel="alternate" type="text/html" href="http://wiki.nosdigitais.teia.org.br/index.php?title=Scilab&amp;diff=5428"/>
		<updated>2012-04-22T13:43:59Z</updated>

		<summary type="html">&lt;p&gt;Cardinot: /* Compiling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scilab is a programming language associated with a rich collection of numeric&lt;br /&gt;
algorithms for covering most aspects of computational and scientific problems. &lt;br /&gt;
&lt;br /&gt;
== Cloning ==&lt;br /&gt;
&lt;br /&gt;
Cloning the Scilab repository. It is a large project - you will be downloading&lt;br /&gt;
over 300MB of code.&lt;br /&gt;
&lt;br /&gt;
=== Git  ===&lt;br /&gt;
&lt;br /&gt;
 $ git clone git://git.scilab.org/scilab&lt;br /&gt;
&lt;br /&gt;
== Compiling ==&lt;br /&gt;
&lt;br /&gt;
After cloning the git repository, a good approach for installing the required dependencies is:&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get build-dep scilab&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 $ sudo aptitude build-dep scilab&lt;br /&gt;
&lt;br /&gt;
After that,&lt;br /&gt;
&lt;br /&gt;
 $ ./configure&lt;br /&gt;
&lt;br /&gt;
Probably there will be a couple of dependencies which are required to be more&lt;br /&gt;
recent than the installed one.  Look around the internet for them.&lt;br /&gt;
&lt;br /&gt;
For the ''master'' branch, I had problems with libjgraphx (latest one was not available in Ubuntu 11.10). &lt;br /&gt;
* Download it from [http://www.jgraph.com/jgraphdownload.html official site]. &lt;br /&gt;
* Extract and enter jgraphx/lib/ &lt;br /&gt;
 $ sudo cp jgraphx.jar /usr/share/java/jgraphx-1.9.2.5.jar&lt;br /&gt;
 $ sudo ln -sf /usr/share/java/jgraphx-1.9.2.5.jar /usr/share/java/jgraphx.jar&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;master&amp;lt;/tt&amp;gt; branch also asked for updated flexdock &amp;gt;= 0.5.3,  jrosetta and&lt;br /&gt;
jlatexmath. The &amp;lt;tt&amp;gt;graphic&amp;lt;/tt&amp;gt; branch asked for scirenderer:&lt;br /&gt;
* Download them from&lt;br /&gt;
** http://java.net/projects/flexdock/downloads&lt;br /&gt;
** http://dev.artenum.com/projects/JRosetta&lt;br /&gt;
** http://forge.scilab.org/index.php/p/jlatexmath&lt;br /&gt;
** http://forge.scilab.org/index.php/p/scirenderer&lt;br /&gt;
* The remaining steps are like those given above for jgraphx.&lt;br /&gt;
&lt;br /&gt;
If configure complains of '''missing arpack''', download from the link shown by&lt;br /&gt;
&amp;lt;tt&amp;gt;configure&amp;lt;/tt&amp;gt;, then compile and install it as usual. Type 'ldconfig' and&lt;br /&gt;
then get back to compiling Scilab. If there is still any problems related to arpack/arpack-ng,&lt;br /&gt;
try the dirty fixes in these bug reports:&lt;br /&gt;
* http://bugzilla.scilab.org/show_bug.cgi?id=10646&lt;br /&gt;
* http://forge.scilab.org/index.php/p/arpack-ng/issues/689/  (comment 1)&lt;br /&gt;
&lt;br /&gt;
If the proposed solutions above do not work, you can disable the compilation of ARPACK. Instead of using &amp;quot;. / Configure&amp;quot;, do this:&lt;br /&gt;
 $ ./configure --without-arpack-ng &lt;br /&gt;
&lt;br /&gt;
If configure complains of '''missing jogl2''', this is a recently introduced problem in Scilab master branch. See&lt;br /&gt;
* http://bugzilla.scilab.org/show_bug.cgi?id=11030&lt;br /&gt;
&lt;br /&gt;
Finally,&lt;br /&gt;
 $ make &lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
Build the documentation&lt;br /&gt;
 $ make doc &lt;br /&gt;
&lt;br /&gt;
Warning: this takes a long time! go sip a cup of acerola juice while you wait.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the run scilab this error appears on the screen:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Gtk-WARNING **: Unable to locate theme engine in module_path: &amp;quot;pixmap&amp;quot;,&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To fix, do this:&lt;br /&gt;
 $ sudo apt-get install gtk2-engines-pixbuf&lt;br /&gt;
&lt;br /&gt;
=== Warning! ===&lt;br /&gt;
If you switch branches, e.g. from 5.3 and master (6.0), and then type 'make',&lt;br /&gt;
you will obtain some crazy random errors; do not forget to type 'make distclean'&lt;br /&gt;
after every branch switch ans start it *all* again.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
* The Scilab package Chaos&lt;br /&gt;
** [http://cpc.cs.qub.ac.uk/summaries/AEAP_v1_0.html site da distribuição].&lt;br /&gt;
* [[SIP]] image processing toolbox&lt;br /&gt;
&lt;br /&gt;
== Hacking ==&lt;br /&gt;
&lt;br /&gt;
=== Navigating the souce code ===&lt;br /&gt;
&lt;br /&gt;
* See the code organization at: http://doxygen.scilab.org/master_wg/&lt;br /&gt;
&lt;br /&gt;
=== Branches ===&lt;br /&gt;
&lt;br /&gt;
* We work at the master branch (future 5.4), but you can try YaSp (future 6.x)&lt;br /&gt;
* See a description of the branches [http://wiki.scilab.org/Scilab%20branch%20policies]&lt;br /&gt;
&lt;br /&gt;
=== Debugging e Profiling ===&lt;br /&gt;
&lt;br /&gt;
See [http://wiki.scilab.org/Debugging%20and%20Profiling%20Scilab%205 Debugging Scilab 5] at the Scilab wiki&lt;br /&gt;
&lt;br /&gt;
They suggest KDbg as a graphical debugger, but it doesn't seem to be in&lt;br /&gt;
synaptic. Therefore, ddd continues to be the best graphical debugger in our&lt;br /&gt;
opinion.&lt;br /&gt;
&lt;br /&gt;
Also see some useful kcachegrind tips in [[User:v1z]]'s blog.&lt;br /&gt;
&lt;br /&gt;
=== Hacking Journal - xgetmouse ===&lt;br /&gt;
* xgetmouse is written in Java. The file is in scilab/modules/gui/src/java/org/scilab/modules/gui/events/Jxgetmouse.java&lt;br /&gt;
** '''very useful:'''  If you change Jxgetmouse.java, you only have to type &amp;quot;make&amp;quot; inside scilab/modules/gui/src. this will recompile only this part. Then you invoke './bin/scilab' inside the scilab top directory, and you're all set! No need for a time-consuming toplevel make or make install!!&lt;br /&gt;
* scilab core calls xgetmouse java from C++ &lt;br /&gt;
** a JVM gets started in C++ at scilab/modules/gui/src/jni/Jxgetmouse.cpp&lt;br /&gt;
** developer writes the .java, as well as a .xml (scilab/modules/gui/src/jni/Jxgetmouse.giws.xml) to interface it with scilab (enabling a scilab language call xgetmouse to get java)&lt;br /&gt;
** the tool to get the xml and generate the .cpp and is called [http://forge.scilab.org/index.php/p/giws/page/GIWS-tutorial/ GIWS], developed by the Sciab team to ease calling Java inside C++&lt;br /&gt;
** there are other files which Im not sure if they are automagically generated:&lt;br /&gt;
*** /scilab/modules/graphics/sci_gateway/c/sci_xgetmouse.c  and  /scilab/modules/gui/includes/CallJxgetmouse.h&lt;br /&gt;
&lt;br /&gt;
== Collaborators within Lab Macambira ==&lt;br /&gt;
&lt;br /&gt;
[[Nivaldo Bondança]] &lt;br /&gt;
&lt;br /&gt;
[[GT-Video]] &lt;br /&gt;
&lt;br /&gt;
[[Category:Lab_Macambira]] [[Category:Video]]&lt;/div&gt;</summary>
		<author><name>Cardinot</name></author>
	</entry>
	<entry>
		<id>http://wiki.nosdigitais.teia.org.br/index.php?title=Scilab&amp;diff=5345</id>
		<title>Scilab</title>
		<link rel="alternate" type="text/html" href="http://wiki.nosdigitais.teia.org.br/index.php?title=Scilab&amp;diff=5345"/>
		<updated>2012-04-13T02:19:37Z</updated>

		<summary type="html">&lt;p&gt;Cardinot: /* Compiling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scilab is a programming language associated with a rich collection of numeric&lt;br /&gt;
algorithms for covering most aspects of computational and scientific problems. &lt;br /&gt;
&lt;br /&gt;
== Cloning ==&lt;br /&gt;
&lt;br /&gt;
Cloning the Scilab repository. It is a large project - you will be downloading&lt;br /&gt;
over 300MB of code.&lt;br /&gt;
&lt;br /&gt;
=== Git  ===&lt;br /&gt;
&lt;br /&gt;
 $ git clone git://git.scilab.org/scilab&lt;br /&gt;
&lt;br /&gt;
== Compiling ==&lt;br /&gt;
&lt;br /&gt;
After cloning the git repository, a good approach for installing the required dependencies is:&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get build-dep scilab&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 $ sudo aptitude build-dep scilab&lt;br /&gt;
&lt;br /&gt;
After that,&lt;br /&gt;
&lt;br /&gt;
 $ ./configure&lt;br /&gt;
&lt;br /&gt;
Probably there will be a couple of dependencies which are required to be more&lt;br /&gt;
recent than the installed one.  Look around the internet for them.&lt;br /&gt;
&lt;br /&gt;
For the ''master'' branch, I had problems with libjgraphx (latest one was not available in Ubuntu 11.10). &lt;br /&gt;
* Download it from [http://www.jgraph.com/jgraphdownload.html official site]. &lt;br /&gt;
* Extract and enter jgraphx/lib/ &lt;br /&gt;
 $ sudo cp jgraphx.jar /usr/share/java/jgraphx-1.9.2.5.jar&lt;br /&gt;
 $ sudo ln -sf /usr/share/java/jgraphx-1.9.2.5.jar /usr/share/java/jgraphx.jar&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;master&amp;lt;/tt&amp;gt; branch also asked for updated flexdock &amp;gt;= 0.5.3,  jrosetta and&lt;br /&gt;
jlatexmath. The &amp;lt;tt&amp;gt;graphic&amp;lt;/tt&amp;gt; branch asked for scirenderer:&lt;br /&gt;
* Download them from&lt;br /&gt;
** http://java.net/projects/flexdock/downloads&lt;br /&gt;
** http://dev.artenum.com/projects/JRosetta&lt;br /&gt;
** http://forge.scilab.org/index.php/p/jlatexmath&lt;br /&gt;
** http://forge.scilab.org/index.php/p/scirenderer&lt;br /&gt;
* The remaining steps are like those given above for jgraphx.&lt;br /&gt;
&lt;br /&gt;
If configure complains of missing 'arpack', download from the link shown by&lt;br /&gt;
&amp;lt;tt&amp;gt;configure&amp;lt;/tt&amp;gt;, then compile and install it as usual. Type 'ldconfig' and&lt;br /&gt;
then get back to compiling Scilab. If there is still any problems related to arpack/arpack-ng,&lt;br /&gt;
try the dirty fixes in these bug reports:&lt;br /&gt;
* http://bugzilla.scilab.org/show_bug.cgi?id=10646&lt;br /&gt;
* http://forge.scilab.org/index.php/p/arpack-ng/issues/689/  (comment 1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally,&lt;br /&gt;
 $ make &lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
Build the documentation&lt;br /&gt;
 $ make doc &lt;br /&gt;
&lt;br /&gt;
Warning: this takes a long time! go sip a cup of acerola juice while you wait.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the run scilab this error appears on the screen:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Gtk-WARNING **: Unable to locate theme engine in module_path: &amp;quot;pixmap&amp;quot;,&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To fix, do this:&lt;br /&gt;
 $ sudo apt-get install gtk2-engines-pixbuf&lt;br /&gt;
&lt;br /&gt;
=== Warning! ===&lt;br /&gt;
If you switch branches, e.g. from 5.3 and master (6.0), and then type 'make',&lt;br /&gt;
you will obtain some crazy random errors; do not forget to type 'make distclean'&lt;br /&gt;
after every branch switch ans start it *all* again.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
* The Scilab package Chaos&lt;br /&gt;
** [http://cpc.cs.qub.ac.uk/summaries/AEAP_v1_0.html site da distribuição].&lt;br /&gt;
* [[SIP]] image processing toolbox&lt;br /&gt;
&lt;br /&gt;
== Hacking ==&lt;br /&gt;
&lt;br /&gt;
=== Navigating the souce code ===&lt;br /&gt;
&lt;br /&gt;
* See the code organization at: http://doxygen.scilab.org/master_wg/&lt;br /&gt;
&lt;br /&gt;
=== Branches ===&lt;br /&gt;
&lt;br /&gt;
* We work at the master branch (future 5.4), but you can try YaSp (future 6.x)&lt;br /&gt;
* See a description of the branches [http://wiki.scilab.org/Scilab%20branch%20policies]&lt;br /&gt;
&lt;br /&gt;
=== Debugging e Profiling ===&lt;br /&gt;
&lt;br /&gt;
See [http://wiki.scilab.org/Debugging%20and%20Profiling%20Scilab%205 Debugging Scilab 5] at the Scilab wiki&lt;br /&gt;
&lt;br /&gt;
They suggest KDbg as a graphical debugger, but it doesn't seem to be in&lt;br /&gt;
synaptic. Therefore, ddd continues to be the best graphical debugger in our&lt;br /&gt;
opinion.&lt;br /&gt;
&lt;br /&gt;
Also see some useful kcachegrind tips in [[User:v1z]]'s blog.&lt;br /&gt;
&lt;br /&gt;
== Collaborators within Lab Macambira ==&lt;br /&gt;
&lt;br /&gt;
[[Nivaldo Bondança]] &lt;br /&gt;
&lt;br /&gt;
[[GT-Video]] &lt;br /&gt;
&lt;br /&gt;
[[Category:Lab_Macambira]] [[Category:Video]]&lt;/div&gt;</summary>
		<author><name>Cardinot</name></author>
	</entry>
	<entry>
		<id>http://wiki.nosdigitais.teia.org.br/index.php?title=Scilab&amp;diff=5318</id>
		<title>Scilab</title>
		<link rel="alternate" type="text/html" href="http://wiki.nosdigitais.teia.org.br/index.php?title=Scilab&amp;diff=5318"/>
		<updated>2012-04-12T15:43:53Z</updated>

		<summary type="html">&lt;p&gt;Cardinot: /* Compiling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Scilab is a programming language associated with a rich collection of numeric&lt;br /&gt;
algorithms for covering most aspects of computational and scientific problems. &lt;br /&gt;
&lt;br /&gt;
== Cloning ==&lt;br /&gt;
&lt;br /&gt;
Cloning the Scilab repository. It is a large project - you will be downloading&lt;br /&gt;
over 300MB of code.&lt;br /&gt;
&lt;br /&gt;
=== Git  ===&lt;br /&gt;
&lt;br /&gt;
 $ git clone git://git.scilab.org/scilab&lt;br /&gt;
&lt;br /&gt;
== Compiling ==&lt;br /&gt;
&lt;br /&gt;
After cloning the git repository, a good approach for installing the required dependencies is:&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get build-dep scilab&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 $ sudo aptitude build-dep scilab&lt;br /&gt;
&lt;br /&gt;
After that,&lt;br /&gt;
&lt;br /&gt;
 $ ./configure&lt;br /&gt;
&lt;br /&gt;
Probably there will be a couple of dependencies which are required to be more&lt;br /&gt;
recent than the installed one.  Look around the internet for them.&lt;br /&gt;
&lt;br /&gt;
For the ''master'' branch, I had problems with libjgraphx (latest one was not available in Ubuntu 11.10). &lt;br /&gt;
* Download it from [http://www.jgraph.com/jgraphdownload.html official site]. &lt;br /&gt;
* Extract and enter jgraphx/lib/ &lt;br /&gt;
 $ sudo cp jgraphx.jar /usr/share/java/jgraphx-1.9.2.5.jar&lt;br /&gt;
 $ sudo ln -sf /usr/share/java/jgraphx-1.9.2.5.jar /usr/share/java/jgraphx.jar&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;master&amp;lt;/tt&amp;gt; branch also asked for updated flexdock &amp;gt;= 0.5.3,  jrosetta and&lt;br /&gt;
jlatexmath. The &amp;lt;tt&amp;gt;graphic&amp;lt;/tt&amp;gt; branch asked for scirenderer:&lt;br /&gt;
* Download them from&lt;br /&gt;
** http://java.net/projects/flexdock/downloads&lt;br /&gt;
** http://dev.artenum.com/projects/JRosetta&lt;br /&gt;
** http://forge.scilab.org/index.php/p/jlatexmath&lt;br /&gt;
** http://forge.scilab.org/index.php/p/scirenderer&lt;br /&gt;
* The remaining steps are like those given above for jgraphx.&lt;br /&gt;
&lt;br /&gt;
If configure complains of missing 'arpack', download from the link shown by&lt;br /&gt;
&amp;lt;tt&amp;gt;configure&amp;lt;/tt&amp;gt;, then compile and install it as usual. Type 'ldconfig' and&lt;br /&gt;
then get back to compiling Scilab. If there is still any problems related to arpack/arpack-ng,&lt;br /&gt;
try the dirty fixes in these bug reports:&lt;br /&gt;
* http://bugzilla.scilab.org/show_bug.cgi?id=10646&lt;br /&gt;
* http://forge.scilab.org/index.php/p/arpack-ng/issues/689/  (comment 1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally,&lt;br /&gt;
 $ make &lt;br /&gt;
 $ sudo make install&lt;br /&gt;
&lt;br /&gt;
Build the documentation&lt;br /&gt;
 $ make doc &lt;br /&gt;
&lt;br /&gt;
Warning: this takes a long time! go sip a cup of acerola juice while you wait.&lt;br /&gt;
&lt;br /&gt;
=== Warning! ===&lt;br /&gt;
If you switch branches, e.g. from 5.3 and master (6.0), and then type 'make',&lt;br /&gt;
you will obtain some crazy random errors; do not forget to type 'make distclean'&lt;br /&gt;
after every branch switch ans start it *all* again.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
* The Scilab package Chaos&lt;br /&gt;
** [http://cpc.cs.qub.ac.uk/summaries/AEAP_v1_0.html site da distribuição].&lt;br /&gt;
* [[SIP]] image processing toolbox&lt;br /&gt;
&lt;br /&gt;
== Hacking ==&lt;br /&gt;
&lt;br /&gt;
=== Navigating the souce code ===&lt;br /&gt;
&lt;br /&gt;
* See the code organization at: http://doxygen.scilab.org/master_wg/&lt;br /&gt;
&lt;br /&gt;
=== Branches ===&lt;br /&gt;
&lt;br /&gt;
* We work at the master branch (future 5.4), but you can try YaSp (future 6.x)&lt;br /&gt;
* See a description of the branches [http://wiki.scilab.org/Scilab%20branch%20policies]&lt;br /&gt;
&lt;br /&gt;
=== Debugging e Profiling ===&lt;br /&gt;
&lt;br /&gt;
See [http://wiki.scilab.org/Debugging%20and%20Profiling%20Scilab%205 Debugging Scilab 5] at the Scilab wiki&lt;br /&gt;
&lt;br /&gt;
They suggest KDbg as a graphical debugger, but it doesn't seem to be in&lt;br /&gt;
synaptic. Therefore, ddd continues to be the best graphical debugger in our&lt;br /&gt;
opinion.&lt;br /&gt;
&lt;br /&gt;
Also see some useful kcachegrind tips in [[User:v1z]]'s blog.&lt;br /&gt;
&lt;br /&gt;
== Collaborators within Lab Macambira ==&lt;br /&gt;
&lt;br /&gt;
[[Nivaldo Bondança]] &lt;br /&gt;
&lt;br /&gt;
[[GT-Video]] &lt;br /&gt;
&lt;br /&gt;
[[Category:Lab_Macambira]] [[Category:Video]]&lt;/div&gt;</summary>
		<author><name>Cardinot</name></author>
	</entry>
</feed>