Difference between array, arraylist, List, Hashtable, Dictionary and SortedList in c#

Basic difference is that arrays are of fixed size. Whereas an ArrayList implements the list data structure and can dynamically grow. While arrays would be more performance that a list, a list would be far more flexible since you don't need to know the required size initially. Array - represents an old-school memory array - kind of like a alias for a normal type[] array. Can enumerate. Can't grow automatically. I would assume very fast insertion, retrieve and speed. ArrayList - automatically growing array. Adds more overhead. Can enum., probably slower than a normal array but still pretty fast. These are used a lot in .NET List - one of my favorites - can be used with generics, so you can have a strongly typed array, e.g. List . Other than that, acts very much like ArrayList. Hashtable - plain old hashtable. O(1) to O(n) worst case. Can enumerate the value and keys properties, and do key/val pairs. Dictionary - same as above only strongly typed via generics, such a...

How to Improve Your Search Engine Ranking on Google


Improving Your Site's Placement on Google's Search Engine Results Google ranks a page according to a large number of factors. Exactly what these factors are is apparently a trade secret, although there are number of well-known things that contribute to the ranking of a page.


1. Links Pointing to Your Website One of the factors that contribute to a web page being considered "important" is the number of links pointing to that page. For example, if your page has 100 quality links leading to it, it will be ranked higher (in Google's estimation) than one that only has 20. But what are "quality" links"? These are links from other popular pages, that is, pages that have, themselves, many (quality) links pointing to them. (Yeah, I know. My definition is circular. And it's possible that the search engine has other factors that determine the quality of a link.) Anyway, in general, since Google ranks your pages according to the number of links pointing at your page, your site will do better if it has more links pointing to it.


2. Your Title Tag Google seems to give weight to the title of your page. By title, I mean the text that is sandwiched between the HTML tags in the <head> section of your web page. If you use a Web editor that automatically inserts a title like "New Document", remember to change it to some meaningful text with your keywords inside to reap the benefit of this feature. Otherwise, your site will only feature in the search results when someone looks for "New Document". Note: by "keywords", I mean the words people will use when searching for your site. For example, if your site sells bicycles, then one keyword for it would be "bicycles", since that's the word you'd expect people to use when searching for bicycles. 3. Your Page Must Have the Words You Think People Will Search For Besides the title tag, if you want your website to feature in Google's results when someone searches for a set of words, say "Widget X", those words must actually occur on your page. Think about it from the point of view of a search engine. If you don't put the words "Widget X" somewhere on the page, how is the search engine supposed to know that the page deals with that topic? The search engine is not a human being who can draw inferences from the general tone and content of the page. Even if it can handle some synonyms, you're going to compete with other sites who have specifically placed those </div>

Comments

Popular posts from this blog

C# Interview Questions on Inheritance

C# Interview Questions on value types and reference types

Why to use UpdatePanel control in AJAX ASP.NET?