-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathp8.html
86 lines (75 loc) · 3.27 KB
/
p8.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
<head>
<title>Analisis de Algoritmos</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="./css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="./css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="./css/navbar.css">
<link rel="stylesheet" type="text/css" href="./css/styles.css">
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico">
</head>
<body>
<div class="topnav" id="myTopnav">
<a href="index.html">Practica 1</a>
<a href="p2.html">Practica 2</a>
<a href="p3.html">Practica 3</a>
<a href="p4.html">Practica 4</a>
<a href="p5.html">Practica 5</a>
<a href="p6.html">Practica 8</a>
<a href="p7.html">Practica 7</a>
<a href="p8.html" class="active">Practica 8</a>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-bars"></i>
</a>
</div>
<div class="container">
<label>Ingrese la longitud de productos que existiran en la mochila</label>
<div class="form-group">
<select class="custom-select" id="cantidadAleatorios" required>
<option value="">Seleccione una cantidad</option>
<option value="4">4</option>
<option value="6">6</option>
<option value="8">8</option>
<option value="10">10</option>
<option value="12">12</option>
<option value="14">14</option>
<option value="16">16</option>
<option value="18">18</option>
<option value="20">20</option>
<option value="31">31</option>
<option value="100">100</option>
<option value="1000">1000</option>
<option value="10000">10000</option>
<option value="100000">100000</option>
<option value="1000000">1000000</option>
</select>
</div>
<label>Ingrese el tamaño maximo de la mochila </label>
<input type="number" id="Wmax" value="8"><br>
<button type="button" class="btn btn-primary" onclick="generar($('#cantidadAleatorios').val(),$('#Wmax').val());">Generar</button><br><br>
<div id="ganancias" style="max-height: 150px;overflow: scroll;"></div>
<div id="pesos" style="max-height: 150px;overflow: scroll;"></div>
<div id="gananciasU" style="max-height: 150px;overflow: scroll;"></div>
<div id="gananciasO" style="max-height: 150px;overflow: scroll;"></div>
<div id="pesosO" style="max-height: 150px;overflow: scroll;"></div>
<button id="btnCalcular" type="button" class="btn btn-primary" onclick="calcular();" style="display: none">Calcular</button><br><br>
<div id="resultadoVoraz" style="max-height: 150px;overflow: scroll;"></div>
<div id="resultadoVorazTime"></div>
<div id="resultadoFuerza" style="max-height: 150px;overflow: scroll;"></div>
<div id="resultadoFuerzaTime"></div>
<button type="button" class="btn btn-primary" onclick="graficar();">Graficar y comparar</button><br><br>
<div class="row">
<div class="col col-lg-4 col-md-4 col-sm-2">
<div id="graficas" style="height: 250px;display: none"></div>
</div>
</div>
</div>
<script src="./js/jquery-3.3.1.slim.min.js"></script>
<script src="./js/moment.min.js"></script>
<script src="./js/raphael-min.js"></script>
<script src="./js/morris.min.js"></script>
<script src="./js/navbar.js"></script>
<script src="./js/myJs8.js"></script>
</body>
</html>