Search This Blog

Sunday, December 5, 2010

CO - Chapter 3 - Data Representation

CO - chapter 3 - Data Representation

Data Types - Complements - Fixed Point Representation - Floating Point Representation - Other Binary Codes - Error Detection Codes

Wednesday, December 1, 2010

ALL THE BEST for III & V Sem MCA Students



“There are no secrets to success. It is the result of preparation, hard work learning from failure.


“Recipe for success: Study while others are sleeping; work while others are loafing; prepare while others are playing; and
dream while others are wishing.”

Friday, November 26, 2010

Assignment II for ANU I year MCA Students

Assignment II

Last Date of Submission: 07 - 12- 2010

1. Convert the following binary numbers to decimal : 101110; 1110101 and 110110100.

2. convert the following numbers with the indicated bases to decimal : (12121)3; (4310)5; (50)7; and (198)12;

3. convert the following decimal numbers to binary: 1231, 673; and 1998;

4. convert the following decimal numbers to the bases indicated.

a. 7652 to octal

b. 1938 to hexadecimal

c. 175 to binary

5. convert the hexadecimal number F3A7C2 to binary and octal.

6. obtain 9's complement of the following eight digit decimal numbers: 12349876; 00980100; 90009951; and 00000000

7. obtain 10's complement of the following six-digit decimal numbers: 123900; 090657; 100000; and 000000.

8. obtain 1's and 2's complements of the following eight-digit binary numbers: 10101110; 10000001; 10000000; 00000001; and 00000000.

9. Perform the subtraction with the following unsigned binary numbers by taking the 10's complement of the subtrahend.

a. 5250 - 1321 b. 1753-8640 c. 20 -100 d. 1200 - 250

10. Perform the subtraction with the following unsigned binary numbers by taking the 2's complement of the subtrahend.

a. 11010-10000 b. 11010 - 1101 c. 100-110000 d. 1010100-1010100

11. Perform the arithmetic oprations (+42) + (-13) and (-42)-(-13) in binary using singed-2's complement representation for negative numbers.

12. Perform the following arithmetic oprations with decimal numbers using singed-10's complement representation for negative numbers.

a. (-638)+(+785) b. (-638)-(+185)

Monday, July 19, 2010

Broadband Internet Speeds 2009-2010: The Top 10 Countries

The results of the second annual global study on the quality of broadband connections done at end of 2009 reveal that 62 out of the 66 countries analyzed had improved the quality of consumer broadband services since last year. However, new data from the study highlights the extent of the digital quality divide between urban and rural areas and, for the first time, compares the quality of fixed and mobile broadband services.

The first groundbreaking Broadband Quality Study was published in September 2008 to highlight each country’s ability to benefit from next-generation web applications and services. The research team found that broadband quality is linked to a nation’s advancement as a knowledge economy and countries with broadband on their national agenda had the highest broadband quality. This year’s report covers an additional 24 countries and includes new analysis on broadband quality in more than 240 cities.

Highlights / Key Facts:

  • Overall average broadband quality increased across the globe:
    • Global average download throughput increased by 49% to 4.75 Megabits per second (Mbps)
    • Global average upload throughput increased by 69% to 1.3 Mbps
    • Global average latency decreased by 21% to 170 milliseconds
  • South Korea tops the 2009 Broadband Leadership table.



Broadband Penetration (% of households)

Broadband Quality Score 2009

Broadband Leadership 2009

1

South Korea

97%

66

139

2

Japan

64%

64

115

3

Hong Kong

99%

33

111

4

Sweden

69%

57

110

5

Switzerland

90%

40

108

6

Netherlands

83%

46

108

7

Singapore

96%

32

107

8

Luxembourg

99%

27

107

9

Denmark

82%

45

106

10

Norway

84%

38

102

  • South Korea rose just above last year’s broadband quality leader Japan with a 72% improvement in its Broadband Quality Score (BQS). This improvement has been driven by continuous efforts by the government to strengthen the country’s position as one of the world’s ICT leaders. Combined with higher broadband penetration, South Korea rises above Japan in the global Broadband Leadership rankings.
  • Japan stands out as having the cities with the highest BQS in the world, with Yokohama and Nagoya leading the BQS rankings and Sapporo not far behind.
  • Sweden has the highest quality broadband internet in Europe. It is rapidly catching up with Japan and South Korea as its BQS improves 38% from 2008. Sweden is the most successful country in closing the broadband quality gap with residents outside the most populated cities enjoying better quality than those in the cities.
  • Lithuania, Bulgaria and Latvia come just behind Sweden in quality boosted by recent city-based fibre rollouts and cable improvements but low broadband penetration means these countries have yet to break into the broadband leaders’ category.
  • 39 countries have a BQS above the threshold required to deliver a consistent quality of experience for the most common web applications today, such as social networking, streaming low-definition video, web communications and sharing small files such as photos and music.
  • Nine countries, South Korea, Japan, Sweden, Lithuania, Bulgaria, Latvia, The Netherlands, Denmark and Romania, were found to have the broadband quality required for future web applications, such as high definition Internet TV viewing and high-quality video communications (such as home telepresence) that will become mainstream in the next 3 to 5 years. In 2008, only Japan exceeded this threshold.
  • The research compares countries according to their stage of economic development :
    • Amongst the developed, innovation-driven economies, South Korea achieved the greatest improvement in broadband quality over the past year with a 73% increase in BQS. Sweden, the USA and the Czech Republic also saw significant above average improvements.
    • Amongst efficiency-driven economies, Bulgaria topped the most improved list with a 57% increase in BQS from 2009. Lithuania, Romania and Latvia also achieved above average improvements.
    • Amongst factor-driven economies, Kenya actually trebled its BQS but the overall score for Kenya remains well below the threshold required for today’s applications. Vietnam and Qatar followed Kenya as having made the most progress in broadband quality for countries in this stage of economic development.
  • The cities with the highest BQS of all the countries in the study were:
Top 10 Cities BQS Next 10 Cities BQS
Yokohama, Japan 85 Rotterdam, The Netherlands 55
Nagoya, Japan 82 Riga, Latvia 54
Kaunas, Lithuania 79 Copenhagen, Denmark 53
Sapporo, Japan 72 Bucharest, Romania 52
Seoul, South Korea 68 Stockholm, Sweden 51
Malmo, Sweden 67 Vilnius, Lithuania 50
Osaka, Japan 65 Zurich, Switzerland 49
Wuhan, China 60 Tokyo, Japan 49
Uppsala, Sweden 57 Goteborg, Sweden 49
Sofia, Bulgaria 56 Kosice, Slovakia 48
  • The research team compared the difference between the BQS in the most populated cities with the BQS in the rest of the country. Although a digital quality divide was found in the majority of countries, 13 countries showed significant differences in BQS between its major cities and the rest of the country. Lithuania, Russia and Latvia had the biggest digital quality divide, while rural residents in Sweden, United Arab Emirates and Iceland enjoyed similar, if not slightly higher quality broadband services than their city counterparts.
  • The country with the highest broadband quality outside of its major cities was Japan, followed by Korea and Sweden.
  • The study also included data on the quality of mobile broadband services for the first time. On average, mobile devices connecting to WiFi services meet the broadband quality threshold required for today’s mobile Internet applications. The average BQS of 3G and 3G+ technologies do not currently meet the threshold due to low upload throughput.

Friday, June 25, 2010

Top Programming languages in 2011

Top 10 programming languages to keep you employed
  1. Java
  2. C#
  3. C/C++
  4. Java Script Along with CSS and HTML
  5. Visual Basic
  6. PHP
  7. Objective - C
  8. Perl
  9. Python
  10. Ruby

Introduction to RDBMS,OODBMS and ORDBMS

Edgar F. Codd at IBM invented the relational database in 1970. Referred to as RDBMS, the relational model extended two previous database systems, the hierarchical and the network models. After Codd’s development, “prototype RDBMS were developed at IBM and UC-Berkeley, and several vendors were offering relational database products shortly thereafter.”

The relational model is based on the structure of a database. A database is simply a collection of one or more relations or tables with columns and rows. The use of set theory allows for data to be structured in a series of tables that has both columns and rows. Each column corresponds to an attribute of that relation, while each row corresponds to a record that contains data values for an entity.

The main elements of RDBMS are based on Ted Codd’s 13 rules for a relational system, the concept of relational integrity, and normalization. The three fundamentals of a relational database are that all information must be held in the form of a table, where all data are described using data values. The second fundamental is that each value found in the table columns does not repeat. The final fundamental is the use of Standard Query Language (SQL).

Benefits of RDBMS are that the system is simple, flexible, and productive. Because the tables are simple, data is easier to understand and communicate with others. RDBMS are flexible because users do not have to use predefined keys to input information. Also, RDBMS are more productive because SQL is easier to learn. This allows users to spend more time inputting instead of learning. More importantly, RDBMS’s biggest advantage is the ease with which users can create and access data and extend it if needed. After the original database is created, new data categories can be added without the existing application being changed.

There are limitations to the relational database management system. First, relational databases do not have enough storage area to handle data such as images, digital and audio/video. The system was originally created to handle the integration of media, traditional fielded data, and templates. Another limitation of the relational database is its inadequacy to operate with languages outside of SQL. After its original development, languages such as C++ and JavaScript were formed. However, relational databases do not work efficiently with these languages. A third limitation is the requirement that information must be in tables where relationships between entities are defined by values.

Today, the relational model is the dominant data model as well as the foundation for the leading DBMS products, which include IBM’s DB2 family, Informix, Oracle, Sybase, Microsoft’s Access and SQLServer, as well as FoxBase and Paradox. RDBMS represent close to a multibillion-dollar industry alone.

To combat the limitations of RDBMS and meet the challenge of the increasing rise of the Internet and the Web, programmers developed object-oriented databases in the 1980s. The main objective of Object-Oriented Database Management Systems, commonly known as OODBMS, is to provide consistent, data independent, secure, controlled and extensible data management services to support the object-oriented model. They were created to handle big and complex data that relational databases could not.

There are important characteristics involved with object-oriented databases. The most important characteristic is the joining of object-oriented programming with database technology, which provides an integrated application development system. Object-oriented programming results in 4 main characteristics: inheritances, data encapsulation, object identity, and polymorphism. Inheritance allows one to develop solutions to complex problems incrementally by defining new objects in terms of previously defined objects.

Data encapsulation or simply encapsulation allows the hiding of the internal state of the objects. Encapsulated objects are those objects that can only be assessed by their methods instead of their internal states. There are three types of encapsulated objects users and developers should recognize. The first is full encapsulation, in which all the operations on objects are done through message sending and method execution. The second is write encapsulation, which is where the internal state of the object is visible only for reading operations. The third is partial encapsulation, which involves allowing direct access for reading and writing for only a part of the internal state.

Object identity allows objects of the database to be independent of each other. Polymorphism and dynamic binding allow one to define operations for one object and then to share the specification of the operation with other objects. This allows users and/or programmers to compose objects to provide solutions without having to write code that is specific to each object.

The language important to OODBMS is data definition and manipulation language (DDML). The use of this language allows persistent data to be created, updated, deleted, or retrieved. An OODBMS needs a computational versus a relational language because it can be used to avoid impedance mismatch. DDML allows users to define a database, including creating, altering, and dropping tables and establishing constraints. DDMLs are used to maintain and query a database, including updating, inserting, modifying, and querying data.

The OODBMS has many advantages and benefits. First, object-oriented is a more natural way of thinking. Second, the defined operations of these types of systems are not dependent on the particular database application running at a given moment. Third, the data types of object-oriented databases can be extended to support complex data such as images, digital and audio/video, along with other multi-media operations. Different benefits of OODBMS are its reusability, stability, and reliability. Another benefit of OODBMS is that relationships are represented explicitly, often supporting both navigational and associative access to information. This translates to improvement in data access performance versus the relational model.

Another important benefit is that users are allowed to define their own methods of access to data and how it will be represented or manipulated. The most significant benefit of the OODBMS is that these databases have extended into areas not known by the RDBMS. Medicine, multimedia, and high-energy physics are just a few of the new industries relying on object-oriented databases.

As with the relational database method, object-oriented databases also has disadvantages or limitations. One disadvantage of OODBMS is that it lacks a common data model. There is also no current standard, since it is still considered to be in the development stages.

Object-oriented database technology is a marriage of object-oriented programming and database technologies. Figure 1 illustrates how these programming and database concepts have come together to provide what we now call object-oriented databases.

Perhaps the most significant characteristic of object-oriented database technology is that it combines object-oriented programming with database technology to provide an integrated application development system. There are many advantages to including the definition of operations with the definition of data. First, the defined operations apply ubiquitously and are not dependent on the particular database application running at the moment. Second, the data types can be extended to support complex data such as multi-media by defining new object classes that have operations to support the new kinds of information.

Other strengths of object-oriented modeling are well known. For example, inheritance allows one to develop solutions to complex problems incrementally by defining new objects in terms of previously defined objects. Polymorphism and dynamic binding allow one to define operations for one object and then to share the specification of the operation with other objects. These objects can further extend this operation to provide behaviors that are unique to those objects. Dynamic binding determines at runtime which of these operations is actually executed, depending on the class of the object requested to perform the operation. Polymorphism and dynamic binding are powerful object-oriented features that allow one to compose objects to provide solutions without having to write code that is specific to each object. All of these capabilities come together synergistically to provide significant productivity advantages to database application developers.

A significant difference between object-oriented databases and relational databases is that object-oriented databases represent relationships explicitly, supporting both navigational and associative access to information. As the complexity of interrelationships between information within the database increases, so do the advantages of representing relationships explicitly. Another benefit of using explicit relationships is the improvement in data access performance over relational value-based relationships.

A unique characteristic of objects is that they have an identity that is independent of the state of the object. For example, if one has a car object and we remodel the car and change its appearance, the engine, the transmission, and the tires so that it looks entirely different, it would still be recognized as the same object we had originally. Within an object-oriented database, one can always ask the question, “is this the same object I had previously?”, assuming one remembers the object’s identity. Object-identity allows objects to be related as well as shared within a distributed computing network.

All of these advantages point to the application of object-oriented databases to information management problems that are characterized by the need to manage:

  • a large number of different data types,
  • a large number of relationships between the objects, and
  • objects with complex behaviors.

Application areas where this kind of complexity exists includes engineering, manufacturing, simulations, office automation and large information systems.

Object-Relational database (ORDBMS) is the third type of database common today. ORDBMS are systems that “attempt to extend relational database systems with the functionality necessary to support a broader class of applications and, in many ways, provide a bridge between the relational and object-oriented paradigms.”

ORDBMS was created to handle new types of data such as audio, video, and image files that relational databases were not equipped to handle. In addition, its development was the result of increased usage of object-oriented programming languages, and a large mismatch between these and the DBMS software.

One advantage of ORDBMS is that it allows organizations to continue using their existing systems, without having to make major changes. A second advantage is that it allows users and programmers to start using object-oriented systems in parallel.

There are challenges in implementing an ORDBMS. The first is storage and access methods. The second is query processing, and the third is query optimization.

Since the development of RDBMS, OODBMS, and ORDBMS, many vendors have extended their systems with the ability to store new data types such as images and texts, and with the ability to ask more complex queries.

One rising technique is enterprise resource planning and management resource planning, which add another layer of application-oriented features on top of a DBMS. Included applications come from Baan, Oracle, SAP, and Siebel. These programs each identify a set of common tasks encountered by a large number of organizations and provide a general application layer to carry out these tasks.

More importantly, DBMS have advanced into the Internet and Web Age. Stored data is widely being accessed through a Web browser. Today, queries are being generated through Web-accessible forms and answers are being formatted using a mark-up language such as HTML. In addition, many vendors and distributors are adding features to their DBMS aimed at making it better equipped for Internet usage.

In summary, relational and object-oriented database systems each have certain strengths as well as certain weaknesses. In general, the weakness of one type of system tends to be strength of the other.