801 lines
29 KiB
HTML
801 lines
29 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="es">
|
|
<head>
|
|
<!-- Generated by javadoc (1.8.0_92) on Mon Jul 11 02:23:29 CLT 2016 -->
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
|
|
<title>Array</title>
|
|
<meta name="date" content="2016-07-11">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
<script type="text/javascript" src="../../../script.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Array";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../cl/cromer/estructuras/package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/Array.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../cl/cromer/estructuras/ArbolNodo.html" title="class in cl.cromer.estructuras"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../cl/cromer/estructuras/Array.ParticionarResult.html" title="class in cl.cromer.estructuras"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?cl/cromer/estructuras/Array.html" target="_top">Frames</a></li>
|
|
<li><a href="Array.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">cl.cromer.estructuras</div>
|
|
<h2 title="Class Array" class="title">Class Array</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>cl.cromer.estructuras.Array</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<br>
|
|
<pre>public final class <span class="typeNameLabel">Array</span>
|
|
extends java.lang.Object</pre>
|
|
<div class="block">Crear una estructura de dato de tipo array.</div>
|
|
<dl>
|
|
<dt><span class="simpleTagLabel">Author:</span></dt>
|
|
<dd>Chris Cromer</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="nested.class.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested Class Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
|
|
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Class and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>class </code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.ParticionarResult.html" title="class in cl.cromer.estructuras">Array.ParticionarResult</a></span></code>
|
|
<div class="block">Esta clase contiene los resultados de Partricionar.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.Tipos.html" title="class in cl.cromer.estructuras">Array.Tipos</a></span></code>
|
|
<div class="block">Esta clase contiene los tipos de array.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Field and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>private java.lang.String[]</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#array">array</a></span></code>
|
|
<div class="block">El array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>private boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#ordered">ordered</a></span></code>
|
|
<div class="block">Si es de tipo ordenado o simple.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>private int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#size">size</a></span></code>
|
|
<div class="block">La cantidad de elementos en el array.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#Array-int-">Array</a></span>(int tamano)</code>
|
|
<div class="block">Crear el array con el tamaño pasador por argumento.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#burbuja-boolean-">burbuja</a></span>(boolean paso)</code>
|
|
<div class="block">Ordenar el array usando burbuja.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#buscar-int-">buscar</a></span>(int valor)</code>
|
|
<div class="block">Buscar si existe un valor dentro el array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#eliminar-int-">eliminar</a></span>(int valor)</code>
|
|
<div class="block">Eliminar un valor del array si existe.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#getIndice-int-">getIndice</a></span>(int indice)</code>
|
|
<div class="block">Devolver el valor que está guardado en cada indice del array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#insercion-boolean-">insercion</a></span>(boolean paso)</code>
|
|
<div class="block">Ordenar el array usando inserción.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#insertar-int-">insertar</a></span>(int valor)</code>
|
|
<div class="block">Insertar un valor al array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#isOrdered--">isOrdered</a></span>()</code>
|
|
<div class="block">Dovolver si el tipo es ordenado o no.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#llenar--">llenar</a></span>()</code>
|
|
<div class="block">Llenar el array con valores al azar.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#merge-boolean-">merge</a></span>(boolean paso)</code>
|
|
<div class="block">Ordenar el array usando merge.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>private boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#merge-java.lang.String:A-int-int-int-boolean-">merge</a></span>(java.lang.String[] temp,
|
|
int prevIzquerda,
|
|
int prevMedio,
|
|
int prevDerecha,
|
|
boolean paso)</code>
|
|
<div class="block">Este metodo hace los cambios al array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#nuevo--">nuevo</a></span>()</code>
|
|
<div class="block">Borrar el array para que sea como nuevo.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code>private <a href="../../../cl/cromer/estructuras/Array.ParticionarResult.html" title="class in cl.cromer.estructuras">Array.ParticionarResult</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#particionar-int-int-java.lang.String-">particionar</a></span>(int izquerda,
|
|
int derecha,
|
|
java.lang.String pivot)</code>
|
|
<div class="block">Particionar el array desded la izquerda y derecho usando un pivot.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#quick-boolean-">quick</a></span>(boolean paso)</code>
|
|
<div class="block">Ordenar el array usando quick.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code>private boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#recurenciaMerge-java.lang.String:A-int-int-boolean-">recurenciaMerge</a></span>(java.lang.String[] temp,
|
|
int izquerda,
|
|
int derecha,
|
|
boolean paso)</code>
|
|
<div class="block">El metodo recursivo para ordenar con merge.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code>private boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#recurenciaQuick-int-int-boolean-">recurenciaQuick</a></span>(int izquerda,
|
|
int derecha,
|
|
boolean paso)</code>
|
|
<div class="block">Metodo recursivo para ordenar using quick sort.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#seleccion-boolean-">seleccion</a></span>(boolean paso)</code>
|
|
<div class="block">Ordenar el array usando selección.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#setOrdered-boolean-">setOrdered</a></span>(boolean ordered)</code>
|
|
<div class="block">Cambiar el tipo de array entre ordenado o simple.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#shell-boolean-">shell</a></span>(boolean paso)</code>
|
|
<div class="block">Ordenar el array usando shell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Array.html#size--">size</a></span>()</code>
|
|
<div class="block">Devolver la cantidad de elementos en el array.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a name="array">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>array</h4>
|
|
<pre>private final java.lang.String[] array</pre>
|
|
<div class="block">El array.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="size">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>size</h4>
|
|
<pre>private int size</pre>
|
|
<div class="block">La cantidad de elementos en el array.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="ordered">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>ordered</h4>
|
|
<pre>private boolean ordered</pre>
|
|
<div class="block">Si es de tipo ordenado o simple.</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="Array-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>Array</h4>
|
|
<pre>public Array(int tamano)</pre>
|
|
<div class="block">Crear el array con el tamaño pasador por argumento.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>tamano</code> - int: El tamaño del array a crear.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="isOrdered--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isOrdered</h4>
|
|
<pre>public boolean isOrdered()</pre>
|
|
<div class="block">Dovolver si el tipo es ordenado o no.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Si el tipo de array es ordenado.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setOrdered-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setOrdered</h4>
|
|
<pre>public void setOrdered(boolean ordered)</pre>
|
|
<div class="block">Cambiar el tipo de array entre ordenado o simple.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>ordered</code> - boolean: Si es verdad, es de tipo ordenado, sino el tipo es simple.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="insertar-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>insertar</h4>
|
|
<pre>public boolean insertar(int valor)</pre>
|
|
<div class="block">Insertar un valor al array.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>valor</code> - int: El valor a insertar.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Verdad si fue exitoso, sino falso.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="eliminar-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>eliminar</h4>
|
|
<pre>public boolean eliminar(int valor)</pre>
|
|
<div class="block">Eliminar un valor del array si existe.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>valor</code> - int: El valor a eliminar.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Verdad si fue encontrado y borrado, sino falso.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="buscar-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>buscar</h4>
|
|
<pre>public int buscar(int valor)</pre>
|
|
<div class="block">Buscar si existe un valor dentro el array.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>valor</code> - int: Valor a buscar.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>int: Devuelve el indice donde fue encontrado, o -1 si no fue encontrado.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="nuevo--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>nuevo</h4>
|
|
<pre>public void nuevo()</pre>
|
|
<div class="block">Borrar el array para que sea como nuevo.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="llenar--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>llenar</h4>
|
|
<pre>public void llenar()</pre>
|
|
<div class="block">Llenar el array con valores al azar.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="getIndice-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getIndice</h4>
|
|
<pre>public java.lang.String getIndice(int indice)</pre>
|
|
<div class="block">Devolver el valor que está guardado en cada indice del array. Se usa para construir la grafica.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>indice</code> - int: El indice que desea ver.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>String: El valor que está en dicho indice.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="size--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>size</h4>
|
|
<pre>public int size()</pre>
|
|
<div class="block">Devolver la cantidad de elementos en el array.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>int: Devolver la cantidad de elementos en el array.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="burbuja-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>burbuja</h4>
|
|
<pre>public boolean burbuja(boolean paso)</pre>
|
|
<div class="block">Ordenar el array usando burbuja.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>paso</code> - boolean: Si es verdad, solo hago en paso del ordenamiento, sino ordenear todos los elementos.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Verdad si algo cambió, sino falso.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="insercion-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>insercion</h4>
|
|
<pre>public boolean insercion(boolean paso)</pre>
|
|
<div class="block">Ordenar el array usando inserción.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>paso</code> - boolean: Si es verdad, solo hago en paso del ordenamiento, sino ordenear todos los elementos.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Verdad si algo cambió, sino falso.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="seleccion-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>seleccion</h4>
|
|
<pre>public boolean seleccion(boolean paso)</pre>
|
|
<div class="block">Ordenar el array usando selección.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>paso</code> - boolean: Si es verdad, solo hago en paso del ordenamiento, sino ordenear todos los elementos.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Verdad si algo cambió, sino falso.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="shell-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>shell</h4>
|
|
<pre>public boolean shell(boolean paso)</pre>
|
|
<div class="block">Ordenar el array usando shell.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>paso</code> - boolean: Si es verdad, solo hago en paso del ordenamiento, sino ordenear todos los elementos.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Verdad si algo cambió, sino falso.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="quick-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>quick</h4>
|
|
<pre>public boolean quick(boolean paso)</pre>
|
|
<div class="block">Ordenar el array usando quick.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>paso</code> - boolean: Si es verdad, solo hago en paso del ordenamiento, sino ordenear todos los elementos.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Verdad si algo cambió, sino falso.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="recurenciaQuick-int-int-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>recurenciaQuick</h4>
|
|
<pre>private boolean recurenciaQuick(int izquerda,
|
|
int derecha,
|
|
boolean paso)</pre>
|
|
<div class="block">Metodo recursivo para ordenar using quick sort.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>izquerda</code> - int: La posición del quick desded la izquerda.</dd>
|
|
<dd><code>derecha</code> - int: La posición del quick desded la derecha..</dd>
|
|
<dd><code>paso</code> - boolean: Si es verdad, solo hago en paso del ordenamiento, sino ordenear todos los elementos.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Verdad si algo cambió, sino falso.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="particionar-int-int-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>particionar</h4>
|
|
<pre>private <a href="../../../cl/cromer/estructuras/Array.ParticionarResult.html" title="class in cl.cromer.estructuras">Array.ParticionarResult</a> particionar(int izquerda,
|
|
int derecha,
|
|
java.lang.String pivot)</pre>
|
|
<div class="block">Particionar el array desded la izquerda y derecho usando un pivot.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>izquerda</code> - int: La posición del quick desde la izquerda.</dd>
|
|
<dd><code>derecha</code> - int: La posición del quick desde la derecha.</dd>
|
|
<dd><code>pivot</code> - String: El valor a comparar con los otros.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>ParticionarResult: Los resultados de particionar.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="merge-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>merge</h4>
|
|
<pre>public boolean merge(boolean paso)</pre>
|
|
<div class="block">Ordenar el array usando merge.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>paso</code> - boolean: Si es verdad, solo hago en paso del ordenamiento, sino ordenear todos los elementos.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Verdad si algo cambió, sino falso.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="recurenciaMerge-java.lang.String:A-int-int-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>recurenciaMerge</h4>
|
|
<pre>private boolean recurenciaMerge(java.lang.String[] temp,
|
|
int izquerda,
|
|
int derecha,
|
|
boolean paso)</pre>
|
|
<div class="block">El metodo recursivo para ordenar con merge.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>temp</code> - String[]: El array temporario para trabajar.</dd>
|
|
<dd><code>izquerda</code> - int: El lado izquerda.</dd>
|
|
<dd><code>derecha</code> - int: El lado derecha.</dd>
|
|
<dd><code>paso</code> - boolean: Verdad si es paso por paso.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Devolver si algo cambió.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="merge-java.lang.String:A-int-int-int-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>merge</h4>
|
|
<pre>private boolean merge(java.lang.String[] temp,
|
|
int prevIzquerda,
|
|
int prevMedio,
|
|
int prevDerecha,
|
|
boolean paso)</pre>
|
|
<div class="block">Este metodo hace los cambios al array.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>temp</code> - String[]: El array temporario para trabajar.</dd>
|
|
<dd><code>prevIzquerda</code> - int: El valor previo de la izquerda.</dd>
|
|
<dd><code>prevMedio</code> - int: El valor previo al medio.</dd>
|
|
<dd><code>prevDerecha</code> - int: El valor previo de la derecha.</dd>
|
|
<dd><code>paso</code> - boolean: Si es paso por paso.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>boolean: Devolver si algo cambió.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../cl/cromer/estructuras/package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/Array.html">Use</a></li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../cl/cromer/estructuras/ArbolNodo.html" title="class in cl.cromer.estructuras"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../cl/cromer/estructuras/Array.ParticionarResult.html" title="class in cl.cromer.estructuras"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?cl/cromer/estructuras/Array.html" target="_top">Frames</a></li>
|
|
<li><a href="Array.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|