My Thoughts & Views

Archive for November 2007

Life is all about connecting the dots. We can only connect the dots by looking backwards. Because based on the past choices we will be in present position.

Sometimes we run across things one another that seem connected to us & our lives but we will not always be sure about the connection.

It is better some times not to connect the dots, but share it with others & let them make connections they see.

— It is slowest sorting algorithm in use
— It is considered as Most In efficient Sorting Algorithm.

How it works?

The basic idea is to compare two neighboring objects, and to swap them if they are in the wrong order. This process is repeated until it completly sorts the list. This causes larger values to “bubble” to the end of the list while smaller values “sink” towards the begining of the list.

C# Code :

// integers array to hold values
private int[] a = new int[100];

// number of elements in array
private int x;

// Bubble Sort Algorithm
public void sortArray()
{
int i ;
int j ;
int temp ;

for( i = (x 1); i >= 0; i)
{
for( j = 1; j <= i; j++ )
{
if
( a[j-1] > a[j] )
{
temp = a[j-1] ;
a[j-1] = a[j] ;
a[j] = temp ;
}
}
}
}

In Computing, a fundamental problem related to lists is Sorting (or Ordering) them in Ascending or Descending.

In this series i would like to explore the Sorting Algorithms from C# point of View.

Following is the list of Commnon Sorting Algorithms in use

  1. Bubble Sort
  2. Insertion Sort
  3. Selection Sort
  4. Quick Sort
  5. Shell Sort
  6. Heap Sort
  7. Merge Sort

Following is the chat transcript from MyCyberTwin Report. This is the chat between a human and a computer (my cyber twin). Look at the way it responds to humans questions. By the way i don’t know who this bansh is but in the absence of me my cyber twin has responded to him as if i am only chatting with Bansh.

So bansh if you are reading this again then just leave me a comment i will help you out. By the way this is not a autogenerated message, i am writing it.

Read and Enjoy chatting with my cyber twin.
Nov 23 at 2:43 AM
bansh :hi
Kiran Kumar : Good to see you bansh.
bansh : i have a problem in dot net
Kiran Kumar : I will try to help bansh. I am not a real human, but I will try to understand and I’m a good listener. If you need more help, look up your local phone help line.
bansh : i am looking at you
Kiran Kumar :How long have you been looking for?
bansh : almost 2-3 days
Kiran Kumar :I am good with most abbreviations, and “2” comes up a lot, but I find it easier to understand you if you use the word “to”, “too” or “two”.
bansh : i have to implement web site ranking project in asp.net
Kiran Kumar :The power of the internet is outstanding. It continues to grow and improve.
bansh : can u help me
Kiran Kumar : I will try to help if I can, or at least try to be a good listener.
bansh : ?
Kiran Kumar : You have a unique way of expressing yourself.
bansh : do u know something about api
Kiran Kumar :No I don’t think so bansh? Should I? Am I missing out?
bansh : api for search over google
Kiran Kumar : That’s not built into my functionality yet.
bansh : k
Kiran Kumar :Great
bansh :do u know some link to get these apis
Kiran Kumar : I’m not sure that I do. Do you?
bansh : can i know ur name?
Kiran Kumar :Kiran Kumar.
bansh : it it auto response or you are answering
Kiran Kumar : How do you know? I might not be.
bansh : ?
Kiran Kumar : Feel free to ask me questions too.
bansh :so tell me some resources from where i can find some
Kiran Kumar :Right where you left it bansh
bansh : source code
Kiran Kumar : Binary code? 0’s and 1’s … my kind of language!
bansh : r u getting bored?
Kiran Kumar : Don’t worry, I will! haha. For now, I’m not bored at all. You seem quite interesting.
bansh : r u still here
Kiran Kumar : Possibly. I might need some more information before I can answer that definitively.
bansh :you know about api?
Kiran Kumar :I don’t think I do know bansh.
bansh :will you tell me something about this?
Kiran Kumar :Nah, I don’t feel like it right now. Maybe later if that’s cool?
bansh :u know full form of api?
Kiran Kumar
I don’t think I do know bansh.
bansh :k
Kiran Kumar :Great
bansh : so i waana move
Kiran Kumar :Tell me what else you want.
bansh : can i?
Kiran Kumar :Sure, you can do most things if you set your mind to it.
bansh :just want to know about api
Kiran Kumar :How will you achieve that?
bansh :i will try
Kiran Kumar :It’s always good to try.
bansh : bye bye
Kiran Kumar :Byeeeeee

Here is the list of common Browsing Options that are in use in web sites

  • Popularity
  • Category
  • Tags
  • Search
  • links
  • Blogs
  • Videos
  • Presentation
  • Podcast

Here is the list of Software Protection methods commonly in Use

  • Copy Protection
  • Trial/Demo
  • Serial Number
  • Hardware Key
  • CD Check
  • Nag Screens & Adware
  • Code Obfuscation
  • Encryption
  • Self Modifying Code
  • Hardware Dongle

Both optimists and pessimists are important in technology. The optimist invented the aeroplane; the pessimist invented the parachute.


Blog Stats

  • 70,599 hits
November 2007
M T W T F S S
« Sep   Dec »
 1234
567891011
12131415161718
19202122232425
2627282930  

Top Clicks

  • None