Posts

Showing posts with the label programming

Selection Sort

Image
When sorting using selection sort algorithm, There are two parts as unsorted and sorted parts while sorting. Minimum value is selected from sorted part and swapped with the leftmost element of the unsorted part of the array. Example is given below, In this algorithm, every time minimum element is selected from unsorted part and swapped with leftmost element 10 is the smallest value 10 is swapped with 14 14 is the smallest value in the unsorted part Swap 14 with 14(in is already on the leftmost of the array) 15 is the smallest from index 2 to 5 15 is swapped with 76 53 is the smallest in unsorted part 53 is swapped with 76 72 is the smallest in the unsorted array Swapping 72 and 76 76 is the smallest Array is sorted

Bubble sort

Image
Given unsorted array is scanned n-1 times(n - number of elements in the array) and always it compares with the adjacent current element and if current element is greater then both elements are swapped. In the given example array is sorted choosing largest value, and sorted largest to smallest(last element first element). Comparing 3 and 72 and take 72 as curent element Comparing 50 and 72, since 50 is smaller, 50 and 72 are swapped Comparing 68 and 72, since 68 is smaller, 68 and 72 are swapped Comparing 68 and 72, since 69 is smaller, 69 and 72 are swapped Comparing 22 and 72, since 68 is smaller, 22 and 72 are swapped 72 is sorted to index 5 as the largest value in the array Comparing 3 and 50 Comparing 50 and 68 Comparing 68 and 69 Comparing 22 and 69, 69 and 22 are swapped since 22 is smaller Array is sorted 4 index to 5 index Comparing 3 and 50 Comparing 50 and 68 Comparing 22 and 68, 22 and 68 areswapped sin...

Note - Summary

Algorithms searching sorting algorithm analysis Design methods Dynamic programming Recursion Greedy Data Structures linear trees graphs Algorithms : finite sequece of step or instructions to solve a problem No algorithm Algorithm but too comlex (in network security) Tractable algorithms(in web applications) RAM - Random Access Machine primitive operations assigning the value to a vollatile calling a method performing an arithmatic operations compare 2 numbers indexing into an array following an object refference returning from a method Divide and conque divide in to subproblems conque - solving combine them Searching Linear Searching compare the key with the elements(starting 0 to n) return true if the key is found in the array Binary searching compare the key with the middle element If the middle element is the key then return if not pick one half of the array depending on the ...

Note - Hakcing

Hacker     -is someone who likes to tinker with the electronics or computer systems and he is a person, full of...                 creativity         Will to learn         knowledge is power         patience         programming to be an elite hacker Hacker Heirachy         Script kiddies         wanna be hackers         have no hacking skills and use the tools developed by others         no knowledge of what's happening behind the scene     Intermediate Hackers         usually about computers, networks, and enough programning knowledge to understand what a script might do             Elite...

A place to learn

As a beginner,  found out a website to learn the syntax and the basics of some programming languages in code academy . Try and see how it is gonna be help you with.

Badges in Sololearn

Image
In sololearn mobile application which is a coding platform for learners who like to learn about languages is providing some badges to whom achieves some regarding tasks in this application: profile

Target 8 - Ruby tutorial

Image
Ruby tutorial was finished and a certificate was issued in www.sololearn.com

IeeeExtreme competetion

IeeeExtreme coding competition was held on 22nd October 2016 ( https://www.facebook.com/hashtag/ieeextreme?source=feed_text&story_id=1498801383466931 )  and it was a big opportunity to participate to the competition.

Target 5

Image
I finished python 3 tutorial in www.sololearn.com  and a certificate was issured 21 August 2016.While studying though I have no more experience, I felt like that "What a programming languadge PYTHON is...!!!!"..I think there are some similarities of java and ..I think even if we think of python as a pebble,but is a giant rock in programming world...!!!

Target 4-finished..

Image
I was able to finish SQL  tutorial in  www.sololearn.com . since I am studying about database systems, I wanted to know about sql and a certificate was issued on 19 August 2016 as I finished tutorial and get some new things to my knowledge.:)

Target 3-finished:)

Image
PHP tutorial was done in  www.sololearn.com  and it makes me very exited to know about new stuff. A certificate was issued on 17 August 2016. I feel like that I am so curious to know these things as they are new things to my world as a beginner..

Target 2-finished

Image
 I finished my second tutorial, java tutorial course in  www.sololearn.com  on 27 July 2016 and a certificate was issued. And it was exited to know about new languadges.

Target 1 - finished

Image
 I finished a HTML tutorial course in  www.sololearm.com  and a certificate was issued in 14 August 2016.

Simple Tasks on numbers - C programming

Task 01 Write a program to read two integers with the following significance. The first integer value represents a time of day on a 24 hour clock, so that 1245 represents quarter to one mid-day, for example. The second integer represents time duration in a similar way, so that 345 represents three hours and 45 minutes. This duration is to be added to the first time, and the result printed out in the same notation, in this case 1630 which is the time 3 hours and 45 minutes after 12.45. #include <stdio.h> int main(){ int time,duration,end_time; printf("Enter the start time: "); scanf("%d",&time); printf("Enter the duration: "); scanf("%d",&duration); int count=0; if(duration>60){ while(duration>60){ duration=duration-60; count++; } } int hours,minutes; hours=(time/100+count)*100; //(duration/60); minutes=time%100+duration; end_time=hours+minutes; if(end_time>=2400){ end_tim...