Monthly Archives: August 2009

Code to shuffle and rearrange a given matrix

using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Collections; namespace ConsoleApplication1{    class Program    {        static void Main(string[] args)        {            //Code to rearrange a shuffled matrix to the original form            Console.Write("Enter number of rows: ");            string str = Console.ReadLine();            int rows = 0;            rows … Continue reading

Posted in Information Technology | Leave a comment

Code to shuffle a given matrix

using System; using System.Collections.Generic; using System.Text; using System.IO;   namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args)         {             //Code to shuffle a given matrix             Console.Write("Enter number of rows: ");             string str … Continue reading

Posted in Information Technology | Leave a comment

Random matrix generation in C#

using System; using System.Collections.Generic; using System.Text; using System.IO;   namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args)         {             //Code to generate a random matrix of given order             Console.Write("Enter order of the matrix: … Continue reading

Posted in Information Technology | Leave a comment

Counting discrete clusters of 1 in a binary 2D matrix

C# code to count discrete clusters of 1 in a binary 2D matrix. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ReservoirCount { class Program { static void Main(string[] args) { Console.Write("Enter number of rows: "); string str = … Continue reading

Posted in Information Technology | Leave a comment