-
Recent Posts
- Making an executable take pipelined input in PowerShell
- FastSharp 2.0
- A StructureMap Gotcha
- OpenWithTest released on Visual Studio Gallery
- Snippet Designer 1.3 Released!
- DiffPlex 1.1 Released
- A Mercurial PowerShell Prompt
- DiffPlex 1.0 Released!!
- Snippet Designer 1.2 Beta Release with Visual Studio 2010 Support
- Regex based Lexer with F#
Categories
- Algorithms
- ASP .NET MVC
- C#
- Codeplex
- Dependency Injection
- DiffPlex
- F#
- FastSharp
- Haskell
- HTML
- J Language
- JavaScript
- JQuery
- LINQ
- LINQ to SQL
- Mercurial
- Moq
- Open Source
- Personal
- PowerShell
- Programming
- Regular Expression
- RTF
- Silverlight
- Snippet Designer
- Snippets
- SQL CE
- structuremap
- testing
- Tools
- Visual Basic
- Visual Studio
- Visual Studio Gallery
- WPF
- XAML
Category Archives: Algorithms
Worst Case Scenario for QuickSort
Take a look at the following code: 1: var sw = new Stopwatch(); 2: sw.Start(); 3: Enumerable.Range(0, 3).SelectMany((i) => Enumerable.Range(0, 50000)).OrderBy(i => i).ToList(); 4: Console.WriteLine(sw.ElapsedMilliseconds); 5: 6: sw.Reset(); 7: sw.Start(); 8: Enumerable.Range(0, 2).SelectMany((i) => Enumerable.Range(0, 50000)).OrderBy(i => i).ToList(); 9: Console.WriteLine(sw.ElapsedMilliseconds); … Continue reading
Posted in Algorithms, C#
Leave a comment

