Delete projectFixedForm/testingSortingTimeComplexity directory

master
Crimson Tome 2021-09-29 12:13:49 +01:00 committed by GitHub
parent 22fce15855
commit fa311dcf87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 0 additions and 235 deletions

View File

@ -1,5 +0,0 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,11
[InternetShortcut]
IDList=
URL=https://delim.co/#

View File

@ -1,9 +0,0 @@
from statistics import *
while True:
print('Type here: ')
data = [int(x) for x in input().split()]
print(data)
mean = mean(data)
print("mean time in ms is: "+str(mean))

View File

@ -1,25 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30011.22
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testingSortingTimeComplexity", "testingSortingTimeComplexity\testingSortingTimeComplexity.csproj", "{37AEB8DE-4520-4562-BDFD-557A244CD0D3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{37AEB8DE-4520-4562-BDFD-557A244CD0D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{37AEB8DE-4520-4562-BDFD-557A244CD0D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{37AEB8DE-4520-4562-BDFD-557A244CD0D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{37AEB8DE-4520-4562-BDFD-557A244CD0D3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7F0CB671-5440-41D5-8609-3901F35553A3}
EndGlobalSection
EndGlobal

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -1,78 +0,0 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace testingSortingTimeComplexity
{
class Program
{
static void Main(string[] args)
{
double total = 0;
using (StreamWriter file =
new StreamWriter(@"C:\Users\4matt\OneDrive - York College\CS\project\testingSortingTimeComplexity\timeFolder\tests.txt", false))
{
file.WriteLine("");
}
for (int x = 0; x< 1000; x++)
{
int arraySize = 7000; //sets the size of the array to the number in the array size text box chosen by the user
int[] arrayData = new int[arraySize]; //creates the array with the size made above
int min = 1; //sets min number to 1
int max = 100; //sets max number to 100
Random randNum = new Random(); //initialises the random class
for (int k = 0; k < arrayData.Length; k++) //for the length of the array
{
arrayData[k] = randNum.Next(min, max); //generates a random number between 1 and 100 for each position in the array. for example size 4: 3,87,14,8
}
Stopwatch stopwatch = new Stopwatch();
stopwatch.Reset();
stopwatch.Start();
int temp;
for (int i = 0; i < arrayData.Length - 1; i++) //loop will repeat as many times as length of array -1
{
for (int j = 0; j < arrayData.Length - 1; j++) //loop will repeat as many times as length of array -1
{
if (arrayData[j] > arrayData[j + 1]) //if first number is larger than second number
{
temp = arrayData[j]; //sets temp to the first (larger) number
arrayData[j] = arrayData[j + 1]; //sets the first number to the second (smaller) number
arrayData[j + 1] = temp; //sets the second number to the temp number (first number) which comletes the swap
}
}
}
stopwatch.Stop();
double time = stopwatch.ElapsedMilliseconds;
total += time;
string say = "Time in ms: " + time + "\n";
Console.WriteLine(say+" ");
using (StreamWriter file =
new StreamWriter(@"C:\Users\4matt\OneDrive - York College\CS\project\testingSortingTimeComplexity\timeFolder\tests.txt", true))
{
file.Write(time+" ");
}
}
double averageTime = total / 1000;
//string displayArray = string.Join(",", arrayData);
//Console.WriteLine(displayArray);
Console.WriteLine("done");
Console.WriteLine("Average time in ms was "+ averageTime);
Process.Start("notepad", @"C:\Users\4matt\OneDrive - York College\CS\project\testingSortingTimeComplexity\timeFolder\tests.txt");
Console.ReadLine();
}
}
}

View File

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("testingSortingTimeComplexity")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("testingSortingTimeComplexity")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("37aeb8de-4520-4562-bdfd-557a244cd0d3")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -1,14 +0,0 @@
C:\Users\4matt\source\repos\testingSortingTimeComplexity\testingSortingTimeComplexity\obj\Debug\testingSortingTimeComplexity.csprojAssemblyReference.cache
C:\Users\4matt\source\repos\testingSortingTimeComplexity\testingSortingTimeComplexity\obj\Debug\testingSortingTimeComplexity.csproj.CoreCompileInputs.cache
C:\Users\4matt\source\repos\testingSortingTimeComplexity\testingSortingTimeComplexity\bin\Debug\testingSortingTimeComplexity.exe.config
C:\Users\4matt\source\repos\testingSortingTimeComplexity\testingSortingTimeComplexity\bin\Debug\testingSortingTimeComplexity.exe
C:\Users\4matt\source\repos\testingSortingTimeComplexity\testingSortingTimeComplexity\bin\Debug\testingSortingTimeComplexity.pdb
C:\Users\4matt\source\repos\testingSortingTimeComplexity\testingSortingTimeComplexity\obj\Debug\testingSortingTimeComplexity.exe
C:\Users\4matt\source\repos\testingSortingTimeComplexity\testingSortingTimeComplexity\obj\Debug\testingSortingTimeComplexity.pdb
C:\Users\4matt\OneDrive - York College\CS\project\testingSortingTimeComplexity\testingSortingTimeComplexity\bin\Debug\testingSortingTimeComplexity.exe.config
C:\Users\4matt\OneDrive - York College\CS\project\testingSortingTimeComplexity\testingSortingTimeComplexity\bin\Debug\testingSortingTimeComplexity.exe
C:\Users\4matt\OneDrive - York College\CS\project\testingSortingTimeComplexity\testingSortingTimeComplexity\bin\Debug\testingSortingTimeComplexity.pdb
C:\Users\4matt\OneDrive - York College\CS\project\testingSortingTimeComplexity\testingSortingTimeComplexity\obj\Debug\testingSortingTimeComplexity.csprojAssemblyReference.cache
C:\Users\4matt\OneDrive - York College\CS\project\testingSortingTimeComplexity\testingSortingTimeComplexity\obj\Debug\testingSortingTimeComplexity.csproj.CoreCompileInputs.cache
C:\Users\4matt\OneDrive - York College\CS\project\testingSortingTimeComplexity\testingSortingTimeComplexity\obj\Debug\testingSortingTimeComplexity.exe
C:\Users\4matt\OneDrive - York College\CS\project\testingSortingTimeComplexity\testingSortingTimeComplexity\obj\Debug\testingSortingTimeComplexity.pdb

View File

@ -1,53 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{37AEB8DE-4520-4562-BDFD-557A244CD0D3}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>testingSortingTimeComplexity</RootNamespace>
<AssemblyName>testingSortingTimeComplexity</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -1,2 +0,0 @@
902 633 601 603 613 725 548 555 608 536 538 534 534 567 553 422 432 433 439 445 432 436 434 447 446 431 467 446 455 445 441 442 430 439 432 443 432 432 455 431 437 471 438 433 429 464 458 458 452 495 461 465 491 457 467 457 476 457 470 461 470 449 467 459 463 455 463 465 521 965 577 1177 1102 540 496 461 499 469 503 494 493 647 845 838 1263 551 866 499 614 579 487 479 475 465 468 462 470 470 475 474 471 693 644 471 508 479 466 471 501 471 468 466 486 456 484 465 465 483 482 527 586 476 485 558 463 477 467 469 481 488 473 477 479 464 467 465 468 548 584 470 472 461 479 468 470 528 469 464 474 466 476 463 468 466 475 513 471 488 464 490 473 474 466 499 463 506 463 602 458 481 462 468 463 465 490 458 491 467 476 468 469 465 468 462 466 492 463 489 462 470 462 472 467 469 462 471 466 458 478 470 468 470 475 459 479 460 487 465 472 500 475 471 463 493 462 480 471 484 479 527 461 473 465 467 473 472 476 486 581 537 496 506 551 545 518 540 540 548 530 543 582 603 672 587 575 647 594 579 606 596 584 618 611 617 595 614 746 617 623 617 599 632 622 632 630 628 623 628 619 767 994 834 824 769 760 891 813 668 688 616 653 688 658 682 653 622 654 651 650 680 635 692 670 670 643 644 637 649 641 701 823 649 645 660 653 655 664 632 660 1113 1409 1391 847 1633 1282 738 1069 1075 1135 710 682 692 722 909 736 1051 685 651 684 708 702 696 666 729 865 760 672 717 738 740 740 656 665 686 679 685 667 713 638 689 720 635 769 706 742 667 753 799 694 651 657 810 719 707 683 677 676 666 830 953 836 955 871 675 790 683 700 657 706 723 670 721 697 697 708 678 715 706 704 673 691 675 721 707 665 823 796 744 675 660 638 685 732 646 717 935 676 791 655 741 866 669 647 707 673 664 696 803 673 634 664 679 784 717 686 649 685 685 955 715 1132 2095 1442 1473 1513 2537 1224 1255 716 1183 1915 878 1262 1430 1813 1410 1289 1234 818 764 1440 853 1275 1185 915 1057 908 1086 704 688 716 654 658 690 857 655 698 783 661 633 709 738 691 664 652 706 714 938 673 666 1295 814 889 1398 900 1249 924 819 1042 698 686 676 990 705 737 853 960 952 757 885 1000 745 785 686 684 670 685 647 670 1882 1042 848 1787 2085 2286 3815 2929 3383 3434 1496 1067 1336 919 1119 1017 954 1280 1375 1033 976 995 945 800 817 1811 1043 844 928 929 907 899 807 910 932 903 849 865 852 749 865 884 845 760 895 767 1079 1247 1130 1233 896 859 729 796 846 810 746 800 871 1054 1246 844 1019 1243 1141 797 966 973 951 1073 809 1009 1810 1393 834 809 782 794 828 875 894 920 925 807 806 765 794 803 889 842 785 835 894 771 816 859 832 808 802 749 909 852 777 816 1704 916 679 670 962 1355 1394 1023 1257 1069 832 770 1466 1229 750 698 725 682 665 692 664 648 677 1189 709 656 800 823 1054 852 1514 3710 2813 1837 2453 3162 1714 3258 2703 3105 2590 1797 1491 2919 1557 2417 1616 1276 1193 1184 1074 1135 1125 1091 999 947 1225 869 1008 895 949 887 879 900 1072 771 1039 759 730 753 794 753 720 757 768 757 745 742 785 734 798 788 789 761 688 749 757 767 755 762 891 755 739 760 849 949 753 756 760 698 754 760 733 744 727 775 741 770 796 749 768 769 784 724 742 769 795 705 807 760 718 816 806 757 702 764 751 776 749 777 929 936 1618 1014 879 816 873 1314 1413 1097 809 759 763 876 757 749 746 759 729 785 762 771 765 790 805 1523 831 752 717 854 887 708 737 725 762 1456 1350 747 787 760 764 756 775 747 763 721 774 720 769 749 796 757 742 772 749 803 1443 926 776 1882 1983 938 986 700 676 642 767 851 657 696 691 1010 841 829 714 1050 842 726 781 739 747 765 816 757 755 764 794 795 1250 928 931 824 834 900 1212 944 921 981 853 897 964 953 1005 1082 1200 992 1017 1006 934 1004 914 956 921 907 880 871 905 943 932 947 914 908 914 985 949 888 784 898 921 896 950 887 980 941 878 892 994 937 1125 882 1057 909 779 735 804 772 742 809 935 750 730 764 754 740 768 757 745 816 740 780 793 798 771 793 752 736 757 743 731 781 735 1459 918 1889 2024 900 830 793 775 763 775 749 756 759 768 1188 767 719 817 840 794 767 749 760 725 697 1011 897 752 750 740 741 759 902 1011 793 715 933 893 840 890 756 785 711 765 794 732 767 733 701 855 805 758 716 760 800 745 804 775 790 754 789 716 760 739 767 969 1131 783 842 1089 1008 982 995 1005 1023 768 773 810 864 767 734 913 897 805 772