You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The U.S. Army Corps of Engineers, Risk Management Center (USACE-RMC) makes no guarantees about
4
+
* the results, or appropriateness of outputs, obtained from Numerics.
5
+
*
6
+
* LIST OF CONDITIONS:
7
+
* Redistribution and use in source and binary forms, with or without modification, are permitted
8
+
* provided that the following conditions are met:
9
+
* ● Redistributions of source code must retain the above notice, this list of conditions, and the
10
+
* following disclaimer.
11
+
* ● Redistributions in binary form must reproduce the above notice, this list of conditions, and
12
+
* the following disclaimer in the documentation and/or other materials provided with the distribution.
13
+
* ● The names of the U.S. Government, the U.S. Army Corps of Engineers, the Institute for Water
14
+
* Resources, or the Risk Management Center may not be used to endorse or promote products derived
15
+
* from this software without specific prior written permission. Nor may the names of its contributors
16
+
* be used to endorse or promote products derived from this software without specific prior
17
+
* written permission.
18
+
*
19
+
* DISCLAIMER:
20
+
* THIS SOFTWARE IS PROVIDED BY THE U.S. ARMY CORPS OF ENGINEERS RISK MANAGEMENT CENTER
21
+
* (USACE-RMC) "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
+
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+
* DISCLAIMED. IN NO EVENT SHALL USACE-RMC BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25
+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28
+
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
+
* **/
30
+
31
+
usingSystem;
32
+
usingSystem.Collections.Generic;
33
+
usingSystem.Linq;
34
+
usingSystem.Text;
35
+
usingSystem.Threading.Tasks;
36
+
37
+
namespaceNumerics.Mathematics.Optimization
38
+
{
39
+
40
+
/// <summary>
41
+
/// This is an implementation of the binary heap data structure. The binary heap is especially convenient for shortest path algorithms
42
+
/// such as Djikstra's shortest path.
43
+
/// source of inspiration: http://opendatastructures.org/versions/edition-0.1e/ods-java/10_1_BinaryHeap_Implicit_Bi.html
44
+
/// </summary>
45
+
/// <typeparam name="T">Generic variable to store with each node. Typically used to store important data associated with the network that isn't required for the binary heap.</typeparam>
0 commit comments