Wednesday, 31 July 2013

BitTorrent - Working and Types

Posted by Suhel Sayyad
I would like to hear from you readers that what you think about BitTorrent or simply the term Torrent. BitTorrent is a protocol supporting the practice of peer-to-peer file sharing that is used to distribute large amounts of data over the Internet. BitTorrent is one of the most common protocols for transferring large files and peer-to-peer networks. Programmer Bram Cohen designed the protocol in April 2001 and released the first available version on July 2, 2001, and the final version in 2008. BitTorrent clients are available for a variety of computing platforms and operating systems including an official client released by BitTorrent, Inc. Following mentioned are different client softwares for BitTorrent.
  • uTorrent: This is the best you can find from web for using the mentioned P2P protocol in order to download files quickly than usual. This software is available for Windows, Mac, Linux and Android.
  • BitTorrent Sync: BitTorrent is a service, which helps you to synchronize your files between various devices. This personal site is also using P2P Technology without interrupting your privacy.
  • File Bundles: This is the place, where you can see the legal phase of BitTorrent. File Bundles are sets of 100% legal files you can download via P2P technology.
BitTorrent 
We cannot compare BitTorrent as a tool for performing piracy. Many people use this as a tool for downloading recently released movies but this is not BitTorrent is meant for. BitTorrent is useful for peer to peer exchanges, so it wrong it to compare it with a Piracy Component.

Working

Users find a torrent of interest, by browsing the web or by other means, download it, and open it with a BitTorrent client. The client connects to the tracker(s) specified in the torrent file, from which it receives a list of peers currently transferring pieces of the file(s) specified in the torrent. The client connects to those peers to obtain the various pieces. If the swarm contains only the initial seeder, the client connects directly to it and begins to request pieces.
Clients incorporate mechanisms to optimize their download and upload rates; for example they download pieces in a random order to increase the opportunity to exchange data, which is only possible if two peers have different pieces of the file.

Conclusion:

After reading this article, we can conclude that BitTorrent can be used as a solution for Peer to Peer File exchange and we cannot compare this one to software or movie piracy.

 
Read More

Tuesday, 30 July 2013

Besharam - Trailer Analysis - Ranbir Kapoor and Pallavi sharda

Posted by Suhel Sayyad
The trailer of Besharam is bound to evoke elicit wolf whistles from the audiences. Coming from the man who created the colossal stature of Chulbul Pandey which was essayed with vigor by Salman Khan in Dabanng, Besharam’s trailer hilarious and entertaining. Starring Ranbir Kapoor and Pallavi Sharda, the film’s supporting cast has the stellar pair of Rishi Kapoor and Neetu Kapoor.
The trailer starts with a fun moment depicted out from Shahrukh Khan's DDLJ in a Besharam way. Followed by dialogue of Dabangg. The movie looks promising as it brings together the flavour of Father, Mother and Son. Nothing much for the actress in the trailer. The title song seems to be OK in the trailer.
Here is trailer for you people.



Read More

Monday, 29 July 2013

AT&T HTC One Mini Press Photo Leaked

Posted by Suhel Sayyad
The new HTC One Mini was made official recently, and now it looks like the handset is headed to AT&T, as a press photo for the AT&T HTC One Mini has been leaked.

Features:
The HTC One Mini comes with a 4.3 inch HD display with a resolution of 1280 x 720 pixels, processing comes in the for of a dual core 1.4GHz QualComm Snapdragon 500 processor, plus 1gB of RAM and 16GB of built in storage.

HTC One Mini

Other specifications on the HTC One Mini include dual cameras, up front we have a 1.6 megapixel with a BSI sensor for video calls, on the back we have a HTC Ultrapixel camera with a BSI sensor and an F2.0 aperture and 28mm lens.
The HTC One Mini features Android 4.2 Jelly Bean, and comes with HTC Sensor and HTC Blinkfeed. There are no details on an official launch date for the handset with AT&T.

Read More

Saturday, 27 July 2013

Samsung Galaxy S4 : Special Features

Posted by Suhel Sayyad

Easy Mode

To enable this mode, simply head to Settings > My Device > Home Screen Mode and you’ll be able to switch between your options (current mode and Easy mode).
easymode

 High Touch Sensitivity


To turn this setting on, simply head to Settings > My Device > Display > High-Touch Sensitivity > On.
gloves

 



Adaptive Sound

To turn on Adapt Sound, head to Settings > My Device> Sound > Adapt Sound and then follow the prompts.

sound

 


Let the S4 choose your best photo

To access this mode, open up your camera app and then click the Mode button. From there, just choose the Best Shot option.
And while, sometime the “best” photo that it picks might not be the one you were thinking of, you can still scroll through the other 7 photos that were taken and choose them if need be.


Read More

Thursday, 25 July 2013

Android 4.3 Jelly Bean : New Features

Posted by Suhel Sayyad 2 Comments
In Android 4.2, Google added the ability to created additional users for a tablet, much the same way that Windows handles users. In Android 4.3, device owners can create restricted profiles that have limits on what a user can do. For users that have skinned versions of Android, this will probably be pretty boring, but stock Android can now auto complete names and phone numbers directly from the dialer. Wi-Fi often does double-duty as a location service if you don't want to leave GPS on all the time. If you switch off Wi-Fi to save battery, though, this brings location services down with it. In Android 4.3, your device can continue scanning for Wi-Fi in a more passive mode that uses much less battery, but still pings for networks so you can keep location-based features. It is available in Nexus 7


Here are the new features in the latest Android .
1. Bluetooth Smart
2. OpenGL ES 3.0 for better 3D graphics
3. DRM APIs
4. Restricted profiles
5. Easier text input
6. Faster user-switching
7. Support for Hebrew and Arabic right-to-left languages
8. Bluetooth AVRCP
9. Background WiFi location
10. Dial pad autocomplete
11. Support for Hindi, Africaans, Amharic, Swahili and Zulu languages



Read More

Tuesday, 23 July 2013

Using GPU to form artificial neural network: Project by Standford University

Posted by Suhel Sayyad
Recently Nvidia has announced that it has collaborated with a research team at Standford University , for creating the largest artificial neural network which will be model like human brain. This network would be 6.5 times larger than the previous developed model by Google in 2012.
Artificial Neural Networks are capable of learning. They can be easily used to model human behavior such as identifying objects, characters, face, audio, voice etc. This is common behavior of humans and we can make machines understand this by making use of Neural Networks.
Creation of such systems is extremely expensive in terms of cost and computation. For example, Google used approximately 1,000 CPU-based servers, or 16,000 CPU cores, to develop its neural network
In contrast, the Stanford team, led by Andrew Ng, director of the university’s Artificial Intelligence Lab, created an equally large network with only three servers using NVIDIA® GPUs to accelerate the processing of the big data generated by the network. With 16 NVIDIA GPU-accelerated servers, the team then created an 11.2 billion-parameter neural network – 6.5 times bigger than a network Google announced in 2012.
The bigger and more powerful the neural network, the more accurate it is likely to be in tasks such as object recognition, enabling computers to model more human-like behavior. A paper on the Stanford research was published in June at the International Conference on Machine Learning.
“Delivering significantly higher levels of computational performance than CPUs, GPU accelerators bring large-scale neural network modeling to the masses,” said Sumit Gupta, general manager of the Tesla Accelerated Computing Business Unit at NVIDIA. “Any researcher or company can now use machine learning to solve all kinds of real-life problems with just a few GPU-accelerated servers.”
Read More

Monday, 22 July 2013

Nexus 7 Features and Photos

Posted by Suhel Sayyad
The new update of Nexus 7 has already appeared, but the press shots without all the reality of finger prints and real lighting can be fun to take a look at.

best-buy-ad-nexus-7

Features:
  • 1.5 GHz quad-core processor (Qualcomm Snapdragon 600)
  • 7-inch screen at 1920 x 1200
  • 4GB of RAM
  • 5MP rear and 1.2MP front-facing camera
  • 16 or 32 GB of storage
  • 4000 mAh battery
  • 802.11 a/b/g/n WiFi, Bluetooth 4.0, NFC
  • Wireless charging
  • Notification light
  • Slim port for 1080p video output
  • Android 4.3
It would have been nice to see Google provide $200 price point for the Nexus 7, however considering the features on this revised Nexus 7 it is actually a bit surprising that they are managing to impose $229.


Read More

Sunday, 21 July 2013

Methods to generate backlinks : Do' s and Don't s

Posted by Suhel Sayyad 4 Comments
When you write your article, it is must that you market it in a proper way so that it reaches to maximum readers. For this always, we strive for different methods. In this article, I am going to discuss some points as Do' s and Don't s for your article.

Backlinks

Do' s :

Unique Content :

If you article are not unique and are duplicated copy of some article, then this article is not going to be selected by the search engines. We refer this as duplicate article penalty in terms of Search Engine. Whenever you declare links in such duplicated article then it does not carry similar weight age as links in the original and unique content. So it is important that your articles are having unique content for consideration of backlinks. Unique articles is basic method to generate backlinks.

Using Keywords : 

You should be very careful in using of Keywords associated to your article. Selection of keywords is another important factor that can result into increase of your backlinks. It therefore generates more backlinks for you. You can spread the links all over your article, so that it feels natural to the search engines. It is important the you have lot of backlinks based on the search term provided by you as keyword from the search engine. So it is a careful point which you must take care before writing keywords for your article.

Links to Related Sites :

It is always good to get the links from the sites that are related to your site. If you are writing on Search Engine Optimization and Backlinks then it is natural to get backlinks from sites based on Search Engine Optimization, Blogging, Traffic generation tips and tracks , Backlinks etc.. A backlink from a related site is carrying a more weight age than a backlink from an unrelated site. So we must take care of spread the backlinks based on topics. You should not go off topic in those scenarios.

Lots of Links :

No doubt quality is an important factor, but one cannot ignore quantity too. You should get quantity of backlinks too. You want to make sure that you're getting a decent number of backlinks for the amount of effort you put into producing the article. Spending an hour on an article only to get one or two backlinks is not an effective use of your time. 

Don't s :

Copied content. 

Even if you make five versions of your article for five different article directories, you still only have five chances to have your article appear in the search engines. Any time another site picks up the article, it'll be seen as copied content.

Non usage of article directories :

Dont make a mistake of ignore article directories, make use of article directories for your article submission, so that it will get high percentage of traffic based on it.

Ignore Social Networking :

Dont forget to use the Social Networking sites like Google +, Facebook, Twitter to market your articles. You can get huge amount of backlinks based on these Social Networking website.

Conclusion: 

In this article, we have seen some Do's and Don't s that we should take care while writing and marketing our article, which will in turn be helpful in generating backlinks for website.


Read More

Friday, 19 July 2013

Snapseed Android App for improving image quality

Posted by Suhel Sayyad
Snapseed - screenshot thumbnail 
 
Snapseed for Android's interface is nearly identical to that of the iPad app. It's simple and clear, yet it packs in a lot of power and in-depth detail. After you open or shoot a photo, you'll see rectangles along the bottom of the screen (or along the side if you're in landscape orientation), which you can swipe through to choose edits, adjustments, and effects. Simple swiping gestures let you adjust contrast, brightness, and color; or you can have the program choose those automatically or choose control points in the image.
Snapseed is not your typical one-dimensional, tap-to-apply photo-editing app. This popular Google-made app is aimed at more discerning photographers, and packs all of the same photo-editing punch that helped make it famous on other platforms.
When you first fire up Snapseed, the app offers a sample photo and a quick tutorial of its myriad features. I highly suggest reading through the tutorial before diving in, since Snapseed employs a unique scheme of controls that isn't exactly intuitive. 
The gesture-based controls might be a little scary at first, but once you play around with them, you'll realize how perfectly they lend themselves to Snapseed's tools. To get started, just pick a tool to use, then swipe vertically to pick which specific attribute, like Brightness or Contrast, to work on. From there, you can swipe horizontally to increase or decrease the intensity of the effect.
A few of the tools, like Tilt-Shift and Crop, require extra tapping and pinching, but for the most part, Snapseed lets you enhance your photos using only swipes. Personally, I love the control scheme, as it adds an enjoyable tactile element to the photo editing, and makes it easy to experiment with both subtle and intense effects. The compare button on the top right lets you compare your 'shopped work with the original shot, which is critical since you can easily get lost in Snapseed's sea of adjustment combinations. Once you're done fine-tuning, you must confirm your work to save. And worry not, the app saves the adjusted photo as a copy, so your original shot is preserved in your device's gallery.
Snapseed's menu of adjustment tools is one of the most impressive I've seen in a mobile app. At first glance, it might look like there are only 13 to choose from, but once you dive in, you'll see that with the submenus, intensity scales (1 to 100), and different adjustment combinations the possibilities are almost endless.
The Automatic tool offers the quickest way to enhance your photos, with its instant color and contrast correction. It works well, and is a great entry-level way of making pics more vibrant before sharing. If you want to get a little more granular with your adjustments, you can fire up the Tune Image, Selective Adjust, and Details tools, which let you adjust attributes like Brightness, Contrast, Saturation, and White Balance. Here you can easily get lost in the number of adjustments and combinations available, so be careful.
 
Read More

Wednesday, 17 July 2013

Oracle E Business Suite - An ERP

Posted by Suhel Sayyad 3 Comments
Oracle E Business Suite is a collection of enterprise resource planning i.e ERP, customer relationship management i.e CRM and supply chain management i.e SCM computer applications. This Oracle E Business Suite is basically based on Oracle's Relational database management system. The basic products under E Business Suite are Oracle CRM, Oracle Financials, Oracle HRMS, Oracle Mobile Supply Chain Applications, Oracle Order Management, Oracle Procurement, Oracle Project Portfolio Management, Oracle Quotes, Oracle Transportation Management, Oracle Warehouse Management Systems, Oracle Inventory, Oracle Enterprise Asset Management. Each of these individuals is internally consisting of many modules. Each of these modules can be seprately licensed under Oracle as per the business needs.

The platforms/ technologies that are embedded under these business suite are Oracle database technologies which includes engines for RDBMS, PLSQL, Java, .Net, HTML and XML, it also comprises of the technology stack i.e Oracle Forms Server, Oracle Reports Server, Apache Web Server, Oracle Discoverer, Jinitator and Sun's Java. Oracle Application Architecture is a framework for multi-tiered, distributed computing that supports Oracle Application Products. In this model, various servers or services are distributed among three levels called Tiers. A server is a process or group of processes that runs on a single machine.

Oracle Applications are an ERP Package. The Key Feature of the entire oracle application module is Data Integration.
  • Master data is Integrated: All the application share common files of customers, suppliers, employee, items and other entities that are used by multiple applications.
  • Transaction data is Integrated: Oracle automatically bridge transactions from one system to another.
  • Financial data is integrated: Financial data is carried in a common format, and financial data is transmitted from one application to another.
Desktop, Application and Database Tiers
Oracle Applications is one of the Enterprise Resource Planning (ERP) Business Application packages. It comprises of various Modules, Libraries, Forms, Reports, etc. Oracle Applications is designed on the basis of Generally Acceptable Accounting Principles (GAAP). It is used to chatter the Business needs of an Organization. It consists of 256 different types of modules, 4000 Forms, 5000 Programs etc. Any Organization can adopt this package and use the supplied modules with the customization as per their business requirements.
Oracle works on 3 Tier Architecture (i.e. Client, Application and Database). It supports Form based Interface (i.e. FIN, MFG, MM & HR) and HTML based Interface (i.e. CRM, SSWA). SSWA – Self Service Web Architecture.

Conclusion: In the article, we have seen the basic essence of Oracle E Business Suite. Also we saw it relevance with ERP. We discussed various Modules available under Oracle E Business Suite. Next articles based on Oracle E Business Suite will cater the tutorials based on this ERP.
Read More

Monday, 15 July 2013

Concurrent Data Structures : Approaches to implement them

Posted by Suhel Sayyad
A concurrent data structure is a method of organizing and storing data for access by multiple computing threads also processed on a computer. In this article, we’ll be discussing about these concurrent data structures in general.

The first question that comes in our mind is How do we construct concurrent data-structures?
Concurrent data structures are significantly more difficult to design and to verify as being correct than their sequential counterparts. The primary source of this additional difficulty is concurrency, exacerbated by the fact that threads must be thought of as being completely asynchronous: they are subject to operating system preemption, page faults, interrupts, and so on.
 
One of the approaches is using a coarse grained locking. You should select your data and apply a big lock on it.Several large open source projects have relied on course-grained locking. The default Python interpreter (CPython) uses a global interpreter lock to prevent multiple native threads from executing Python byte code concurrently.
 
Another approach is fine grained locking. Break that coarse-grained lock into multiple locks. Each fine-grained lock is responsible for protecting a region of the data. Operations on the data are responsible for acquiring one or more of these locks in order to read, modify, and/or write. Fine grained can improve overall output of the programs.

The third method extends the concept of fine-grained locking its logical extreme, which is to have lock-free programming. Lock‑free programming is programming without locks. Or more formally, a lock‑free implementation of a concurrent data structure is one that guarantees that some thread can complete an operation in a finite number of steps regardless of the execution of the other threads. 

Conclusion: In this article, we understood the basics of concurrent data structures and further we discussed the approaches of implementing them.
Read More

Sunday, 14 July 2013

HTC One 801e : Review

Posted by Suhel Sayyad
Beauty need not just be in the eyes of the beholder with the HTC One that seamlessly blends timeless class with post-modern functionality to present a phone that reshapes your smartphone experience. The device from the makers at HTC, the single GSM SIM smartphone runs on the Android (Jelly Bean) that is aided by the HTC BlinkFeed which molds your online and offline existence effortlessly feeding real time happenings right onto your home-screen. It is powered by a 1.7 Ghz Qualcomm Snapdragon 600 Quad Core processor with 2 GB RAM, this capacitive touch phone covets bragging rights with a 4.7 inch screen with full HD 1920 x 1080 pixels resolution. Juiced by a Li-Polymer 2300 mAh battery, the phone can give you up to 27 hours on 2G networks.

Buy HTC One 801e: Mobile
HTC One 801e


A picture speaks a thousand words and the camera that takes the picture is what makes it. The HTC One captures 300 per cent more light in each frame with the HTC UltraPixel 4 MP front camera and a 2.1 megapixel secondary camera that brings ultimate clarity and detail in each lifelike photo. The phone that supports full HD recording as well automatically captures up to 20 photos and one three second video for every picture, revolutionizing the meaning of dynamic photography. The HTC Video Highlights crafts its own video show of any event which is completely customizable and easily shareable as well.
Talk about intelligence, the innovative Sense Voice on the HTC One are built to reduce loud ambient noises to boost in-call voice for clarity beyond all expectations. And the BoomSound with dual frontal stereo speakers with built-in amplifiers is an audiophile’s delight with music transfer with so less distortion and so much more detail. 
With an internal storage capacity of 32 GB, the HTC One is all about connectivity with GPRS, EDGE, 3G, Wi-Fi, DLNA and bluetooth apart from a microUSB port to transfer media and a 3.5 mm audio jack as well. A phone that is built with zero gap construction and tapered edges for a smooth yet firm grip, the HTC One is one smartphone that guarantees nothing less than the very best.
Read More

Saturday, 13 July 2013

Review: Bhaag Milkha Bhaag

Posted by Suhel Sayyad
The movie is story of our own Flying Sikh, Milkha Singh. The movie talk about his journey from his childhood days to becoming nation's pride on athletic performances. Tainted with battered past, bruised with horrific memories of Partition and later petty crime, his lady love helped him get focus in life. The film takes you back in time when Milkha lost his family members during the partition and his rise to the celebrated status without any prescribed guidance or monetary backing.

STORY, SCREENPLAY AND DIALOGUES


Milkha Singh’s life story has the right ingredients for a biopic which Prasoon Joshi and Rakeysh Omprakash Mehra have executed with great imagination. The 3 + hour run of movie never makes audience loose their patience and the screenplay therefore keeps you engaging. The Screenplay is written by Prasson Joshi and we must say he has done a fantastic job. Dialogues written by Prasoon Joshi also are mind blowing. From the glee of getting his first India blazer to when he loses the qualifying match in Melbourne to when he breaks down crying the pent up tears of years , the story’s terrain is smartly packed with judicious amounts of highs and lows, making the film’s recipe flawless. I would rate 10 on 10 for the script.

Bhaag Milkha Bhaag Poster

STAR PERFORMANCES


Farhan Akhtar as Milkha Singh is the best which could have been casted. He looks like him and really gives it all for the character. He really makes audience feel for Milkha looking at the incidence that took place with him in his life. No other actor could have done justice to this character to an extent which Farhan has given. Giving the best work of his career, he is resplendent as Milkha Singh. He brings out Milkha’s vulnerability with charm and his passion with force. Sonam Kapoor as Biro has a little role in her limited screen time, but she will flatter you enough that you actually feel bad that Milkha and Biro eventually part ways!
British actor Art Malik seems most appropriate in the role of Farhan's father. Dalip Tahil [as Pandit Nehru], K.K. Raina [as Mr Wadhwa], Nawab Shah [as Coach Javed], Meesha Shafi [as Perizaad], Dev Gill [as Abdul Khaliq] and Shanta Kumar [as Gen. Ayub Khan] are wonderful in their respective parts. Jabtej Singh, as the young Milkha, is superb. Pavan Malhotra shines through every scene with a first rate work and amazes you with his easy confidence.

DIRECTION AND OTHER TECHNICAL ASPECTS


Post Delhi 6, Director Rakesh Om Prakash Mehra (ROPM) needed a strong comeback and Bhaag Milkha Bhaag is his output.The narration style of ROPM is fantastic and he has engaged the audience in the movie with full justice to the script. The background score by Shankar-Ehsaan-Loy in wonderful and O Rangrezz croons with beauty! The editing is so nice that the 3 hour plus runtime isn’t tedious at any point.

FINAL VERDICT


Bhaag Milkha Bhaag is a MUST MUST WATCH for all.. I would rate this one as 4 on 5.


Read More

Thursday, 11 July 2013

Linear Search and Binary Search : Data Structures

Posted by Suhel Sayyad
Searching techniques are used in data structures to locate a key element in given set of elements. The searching algorithms are of two types viz Linear Search and Binary Search


Linear search in c programming: The following code implements linear search (Searching algorithm) which is used to find whether a given number is present in an array and if it is present then at what location it occurs. It is also known as sequential search. It is very simple and works as follows: We keep on comparing each element with the element to search until the desired element is found or list ends.

//Linear Search Program

#include <stdio.h>

int main()
{
   int array[100], search, c, number;

   printf("Enter the number of elements in array\n");
   scanf("%d",&number);

   printf("Enter %d numbers\n", number);

   for ( c = 0 ; c < number ; c++ )
      scanf("%d",&array[c]);

   printf("Enter the number to search\n");
   scanf("%d",&search);

   for ( c = 0 ; c < number ; c++ )
   {
      if ( array[c] == search )     /* if required element found */
      {
         printf("%d is present at location %d.\n", search, c+1);
  break;
      }
   }
   if ( c == number )
      printf("%d is not present in array.\n", search);    

   return 0;
}

In the code below we will print all the locations at which required element is found and also the number of times it occur in the list.

#include <stdio.h>

int main()
{
   int array[100], search, c, n, count = 0;

   printf("Enter the number of elements in array\n");
   scanf("%d",&n);

   printf("Enter %d numbers\n", n);

   for ( c = 0 ; c < n ; c++ )
      scanf("%d",&array[c]);

   printf("Enter the number to search\n");
   scanf("%d",&search);

   for ( c = 0 ; c < n ; c++ )
   {
      if ( array[c] == search )   
      {
         printf("%d is present at location %d.\n", search, c+1);
  count++;
      }
   }
   if ( count == 0 )
      printf("%d is not present in array.\n", search);
   else
      printf("%d is present %d times in array.\n", search, count);

   return 0;
}




Binary Search

C program for binary search: This code implements binary search in c language. It can only be used for sorted arrays, but it's fast as compared to linear search. If you wish to use binary search on an array which is not sorted then you must sort it using some sorting technique say merge sort and then use binary search algorithm to find the desired element in the list. If the element to be searched is found then its position is printed.

#include <stdio.h>

int main()
{
   int c, first, last, middle, n, search, array[100];

   printf("Enter number of elements\n");
   scanf("%d",&n);

   printf("Enter %d integers\n", n);

   for ( c = 0 ; c < n ; c++ )
      scanf("%d",&array[c]);

   printf("Enter value to find\n");
   scanf("%d",&search);

   first = 0;
   last = n - 1;
   middle = (first+last)/2;

   while( first <= last )
   {
      if ( array[middle] < search )
         first = middle + 1;   
      else if ( array[middle] == search )
      {
         printf("%d found at location %d.\n", search, middle+1);
         break;
      }
      else
         last = middle - 1;

      middle = (first + last)/2;
   }
   if ( first > last )
      printf("Not found! %d is not present in the list.\n", search);

   return 0;  
}

Read More

Monday, 8 July 2013

Queue : Working of Enqueue, Dequeue, Circular and Priority Queues

Posted by Suhel Sayyad
In computer science, a queue is a particular kind of abstract data type or collection in which the entities in the collection are kept in order and the principal (or only) operations on the collection are the addition of entities to the rear terminal position, known as enqueue, and removal of entities from the front terminal position, known as dequeue. This makes the queue a First-In-First-Out (FIFO) data structure. In a FIFO data structure, the first element added to the queue will be the first one to be removed. This is equivalent to the requirement that once a new element is added, all elements that were added before have to be removed before the new element can be removed. Use gcc compiler on Ubuntu and Turbo C Compiler on Windows to program below algorithms. Make use of the animation videos to understand the concept in a fruitful way.

Addition into a queue

procedure addq (item : items);
{add item to the queue q}
begin
    if rear=n then queuefull
    else begin
         rear :=rear+1;
         q[rear]:=item;
    end;
end;{of addq}

Deletion in a queue

procedure deleteq (var item : items);
{delete from the front of q and put into item}
begin
    if front = rear then queueempty
    else begin
         front := front+1
         item := q[front];
    end;
end; {of deleteq}



Circular Queue

1) Algorithm for checking whether the queue is full or not. 

isfull (queue *q)
{
If ((q−>rear is equals to MAXSIZE −1 AND q−>front is equals to 0) OR (q−>front is equals to q−>rear + 1 AND q−>front is not equals to 0)) return true;
Else return false;
}

2) Algorithm for inserting an element into the queue.

[QUOTE][COLOR="red"]
Insert (queue *q, item)
{
If (! isfull (queue))
{
Update q−>rear by (q−>rear + 1) % MAXSIZE;
Assign item into q−>arr [q−>rear];
}
}

3) Algorithm for checking whether the queue is empty or not.

isempty (queue *q)
{
If (q−>rear is equals to −1 AND q−>front is equals to 0) return true;
Else return false;
}

4) Algorithm for deleting an element from the queue.

Item Delete (queue *q)
{
If (! isempty (stack))
{
Assign q−>arr [q−>front] into item;
If (q−>rear is equals to q−>front)
{
Update q−>rear by −1;
Update q−>front by 0;
}
Else update q−>front by (q−>front + 1) % MAXSIZE;
}
Return item;
}

Priority Queues


Animations Courtsey: Yashwant Kanetkar Data Structures Through C.


Read More

How to check whether your website is banned by Google Adsense

Posted by Suhel Sayyad
Earn from home is now a simple but yet difficult task. A person good in his forte with a decent writing skills can always earn from home. This he/she can do it by making a good website and using Google Adsense for sake of advertisements. Google Adsense is the most high payable agency for advertisers in todays era.
But though it looks that simple, google has its own policies to check whether your site is capable to get their approval. Many of the developers land up entering the site in a banned mode. This article will make you understand techniques for checking whether your website is put on banned mode by Google Adsense.

Banned Check

You can visit Banned Check to verify if your account is banned from Google Adsense. Above is the screenshot taken from the same website.
 

SandBox

Another most famous tool regarding Google Adsense is the Sandbox. You can use this tool to list the status of the website and potential ads that are part of Google Adsense in a given website and region.Sandbox




Hope you find this short information useful for check of your own website.
Read More