8000 dotnet-samples/csharp/parallel/EditDistance at master · maxwellb/dotnet-samples · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

languages products page_type name urlFragment description
csharp
dotnet
dotnet-core
sample
.NET Core parallel wavefront algorithm sample
parallel-programming-edit-distance-cs
A .NET Core console application that uses Task to parallelize the edit distance dynamic programming problem between two strings.

.NET Core parallel wavefront algorithm sample

The sample source code is a .NET Core Console application written in C#, that uses Task to parallelize a dynamic programming problem. The dynamic programming problem is computing the "edit distance" between two strings.

Sample prerequisites

This sample is written in C# and targets .NET Core 3.1. It requires the .NET Core 3.1 SDK.

Types and members in use

The sample source code uses the following types and members:

Building the sample

The source code includes an MSBuild project file for C# (a .csproj file) that targets .NET Core 3.1. After you download the .zip file containing the example code, create a directory and select Download ZIP to download the sample code files to your computer. To build the example:

  1. Download the .zip file containing.
  2. Create the directory to which you want to copy the files.
  3. Copy the files from the .zip file to the directory you just created.
  4. If you are using Visual Studio 2019:
    1. In Visual Studio, select Open a project or solution (or File > Open > Project/Solution from the Visual Studio menu.
    2. Select Debug > Start Debugging from the Visual Studio menu to build and launch the application.
  5. If you are working from the command line:
    1. Navigate to the directory that contains the sample.
    2. Type in the command dotnet run to build and launch the application.
0