Skip to main content

Posts

Showing posts from 2020
Difference Between Vector and Raster image There are two kinds of computer graphics -  raster  (composed of pixels) and  vector  (composed of paths). Raster images are more commonly called  bitmap  images. A bitmap image uses a grid of individual pixels where each pixel can be a different color or shade.  Bitmaps are composed of pixels. Vector graphics use mathematical relationships between points and the paths connecting them to describe an image.  Vector graphics are composed of paths. The image to the left below is representative of a bitmap and the image to the right is representative of a vector graphic. They are shown at four times actual size to exaggerate the fact that the edges of a bitmap become jagged as it is scaled up: Bitmap Image: Vector Graphic: With Adobe® Systems' introduction of the PostScript® page-description language computers could display fonts and images using point-to-point math rather than by pixels alone. The advantage to using a page-descript

8 Tips to Protect Your Computer From Viruses and Malware

It may be a new year, but an old scam is making the rounds of online computer users. The FBI recently issued a warning about a computer scam that starts on the telephone: You get a call from someone claiming to work for a “major software company.” (Hmm…wonder which one?) They tell you your computer is sending error messages to them over the Web, and they’ve detected a virus. No problem, however: All you have to do is pay them a fee and they’ll remotely fix your computer by installing anti-virus software on it. Once the caller has your credit card number and access to your computer, they don’t remove viruses, however – they install them. In October, the  Federal Trade Commission  cracked down on a similar scam that charged computer users from $49 to $450 to “remove” malware from their computers. The agency estimated “tens of thousands” of computer users fell prey to that scam. The way to defeat these scams is simple enough – don’t give strangers your credit card numbers or acc
Following are the implementations of simple Breadth First Traversal from a given source. The implementation uses  adjacency list representation  of graphs.  STL ‘s  list container  is used to store lists of adjacent nodes and queue of nodes needed for BFS traversal. C++ Java Python3 filter_none edit play_arrow brightness_4 // Java program to print BFS traversal from a given source vertex. // BFS(int s) traverses vertices reachable from s. import java.io.*; import java.util.*;     // This class represents a directed graph using adjacency list // representation class Graph {      private int V;   // No. of vertices      private LinkedList<Integer> adj[]; //Adjacency Lists          // Constructor      Graph( int v)      {          V = v;          adj = new LinkedList[v];          for ( int i= 0 ; i<v; ++i)              adj[i] = new LinkedList();      }          // Function to add an edge into t