fix struct

This commit is contained in:
2026-01-25 09:28:09 +03:00
parent 3d7acb1d63
commit eb9bd9db1a
295 changed files with 154603 additions and 21 deletions

View File

@@ -0,0 +1,50 @@
#include "HeapTestAuto.h"
#include <cassert>
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace igmdk;
void timeSRT()
{
IndexedHeap<int> heap;
int N = 1500000;
//IndexedArrayHeap<int> heap;
for(int i = 0; i < N; ++i)
{
heap.insert(rand()%10, i);
}
for(int i = 0; i < N; ++i)
{
heap.deleteMin();
}
}
void DDDIndexedHeap()
{
IndexedHeap<int> IndexedHeap0to3;
for(int i = 0; i < 4; ++i)
{
IndexedHeap0to3.insert(rand(), i);
}
cout << "breakpoint" << endl;
}
void DDDIndexedArrayHeap()
{
IndexedArrayHeap<int> IndexedArrayHeap0to3;
for(int i = 0; i < 4; ++i)
{
IndexedArrayHeap0to3.insert(rand(), i);
}
cout << "breakpoint" << endl;
}
int main()
{
testAllAutoHeaps();
DDDIndexedHeap();
DDDIndexedArrayHeap();
timeSRT();
return 0;
}