For those who have used Arrays in C and C++, list in Python is going to be a lucky charm . As Head First Python states, List is nothing but an array with steroids. Python list makes the life very easier as its dynamic in nature and the in-build functions are available to perform all … Continue reading A Tour On Python List
Am completely new to python and Django . Today i made an attempt of installing Django in my ubuntu 14.04 system. The OS is fresh installed, just did 4 days back . Django is going to be my first package installation. I went with the Official Documentation given below Official Documentation for Django Installation As … Continue reading Installing Django 1.8.1 in Ubuntu 14.04 LTS
Best example of insertion sort is sorting deck of cards. .. As you see in the figure, say we have 2,4,5 10 and 7 clubs in our hand and we have to sort it . As we know, we will take 7 clubs and place it between 5 and 10 clubs. Hence, for each card … Continue reading Insertion Sort asymptotic Analysis
On an occasion i had a file with words listed one by one and i wanted to sort the file in lexicographic order. Since i work in linux machines , its just 1 command . `cat filename | sort ` to sort it in lexicographic order. But i wanted to do it in c++. I … Continue reading Sorting variable length strings in lexicographic order C++
Very new to python Programming . I tried installing python 2.7 in my linux machine (ubuntu). Unfortunately , python 3 was already installed in the system. For parsing the twitter tweets using python, i had to install oauth2 in my machine. i spent almost 2 to 3 hours doing it . Got almost 5 different … Continue reading ImportError: No module named oauth2
As the days are passing , computers are getting faster and faster . At the same time, the amount of data that is being used is growing exponentially. Hence, we are in a path of finding how to handle, store and analyze the huge data set in a effecient manner. One among such example is … Continue reading Google Books Ngram
In my past post , i explained the insertion sort with c++ code https://shrinathsuccess.wordpress.com/2014/03/09/insertion-sort-c/ The major overhead in the insertion sort algorithm is swapping. For each element we are performing j-i swaps if the sequence is in descending order. Swaps are much costlier and we also need a new variable involved for swapping. If we … Continue reading Insertion Sort – Can we do better ?