Open a terminal on the folder with the files.
cd path/to/your/app
Then on the terminal run:
php -S localhost:8000
<dsx> | |
<scene root="plane" axis_length="1"/> | |
<views default="1"> | |
<perspective id="1" near="10" far="500" angle="0"> | |
<from x="10" y="10" z="10"/> | |
<to x="15" y="15" z="15"/> | |
</perspective> |
Open a terminal on the folder with the files.
cd path/to/your/app
Then on the terminal run:
php -S localhost:8000
################################################################################ | |
# 1. Introdução # | |
################################################################################ | |
Transport | |
Network | |
Data Link | |
Physical | |
- Circuit Switching | |
- Establece-se a ligação, é definido um caminho e é enviada a informação. |
[Desktop Entry] | |
Type=Application | |
Encoding=UTF-8 | |
Name=GitKraken | |
Comment=GitKraken | |
Exec=/usr/share/GitKraken/gitkraken | |
Icon=/usr/share/GitKraken/gitkraken.png |
PARSER_BEGIN(Exemplo) | |
// código Java que invoca o parser | |
public class Exemplo { | |
public static void main(String args[]) throws ParseException { | |
// criação do objecto utilizando o constructor com argumento para | |
// ler do standard input (teclado) | |
Exemplo parser = new Exemplo(System.in); | |
parser.Aritm(); | |
} | |
} |
#!/bin/bash | |
file=$1 | |
if [ ${file: -1} == "t" ]; then | |
jjtree $file | |
file=${file%t} | |
fi | |
javacc $file | |
javac *.java | |
name=${file%.*} | |
echo "________________________________________________________________________________" |
Considere o exemplo dado nas aulas teóricas de arrumação de volumes em contentor mas com capacidade 80, e a respectiva população genética inicial. A penalização é 1 centésimo da proposta nas aulas. Supondo que usamos política elitista (mas só para o melhor) geraram-se depois 2 números aleatórios: 0,40 / 0,72 indicando quem são candidatos ao emparelhamento. Assuma a probabilidade de cruzamento de 75% e que a roleta deu agora os 3 números; 0.95 / 0.50 / 0.65. Assuma um ponto de cruzamento entre o 5o e 6o bits. A probabilidade de mutação é de 5% e só ao 25o número aleatório apareceu um inferior a 0,05.
a) Apresente a 2a geração. Explique pormenorizadamente todo o processo que seguiu.
b) Caso tivesse forçosamente que parar o algoritmo (na 2o geração) que solução escolhia e porquê?
Group 4. General (4 pts) | |
Comment the following sentences, indicating if they are true or false, and justifying your answers (if helpful | |
include illustrative examples to help on justifying your answers): | |
4.a) [2pts] “The existence of left recursivity in CFG’s make impossible the implementation of them.”. | |
4.b) [2pts] “The only way to satisfy the precedence of operators in arithmetic and/or logic expressions is to | |
ensure that the concrete syntax tree respect those precedencies”. | |
a. Verdadeira |
Visit my blog or connect with me on Twitter
git init
or
I hereby claim:
To claim this, I am signing this object: