Posts

Showing posts from 2016

Graph Traversal

Image
https://www.youtube.com/watch?v=bIA8HEEUxZI https://www.youtube.com/watch?v=9C2cpQZVRBA&t=304s

InterpolationSearch

Image
Interpolation search is an improved variant of binary search. This search algorithm works on the probing position of the required value. For this algorithm to work properly, the data collection should be in a sorted form and equally distributed. Binary search has a huge advantage of time complexity over linear search. Linear search has worst-case complexity of Ο(n) whereas binary search has Ο(log n). There are cases where the location of target data may be known in advance. For example, in case of a telephone directory, if we want to search the telephone number of Morphius. Here, linear search and even binary search will seem slow as we can directly jump to memory space where the names start from 'M' are stored. Positioning in Binary Search In binary search, if the desired data is not found then the rest of the list is divided in two parts, lower and higher. The search is carried out in either of them. Even when the data is sorted, binary search does

Binary Search

Image

ce dengor hok ning skali

Image

sorting

Image

Pengenalan kepada "Link List"

Image
Video di bawah menerangkan mengenai konsep array dan linklist dari aspek memori komputer.Selamat menonton.

Koding HTML untuk masukkan checkbox

Berikut adalah contoh koding html bagi memasukkan checkbox ke dalam laman sesawang anda. <!DOCTYPE html> <html> <body> <form action=""> <input type="checkbox" name="vehicle" value="Bike">I have a bike<br> <input type="checkbox" name="vehicle" value="Car">I have a car </form> </body> </html> sekian..terima kasih sumber w3school

Java Regex

Java Regex The  Java Regex  or Regular Expression is an API to  define pattern for searching or manipulating strings . It is widely used to define constraint on strings such as password and email validation. After learning java regex tutorial, you will be able to test your own regular expressions by the Java Regex Tester Tool. Java Regex API provides 1 interface and 3 classes in  java.util.regex  package. Contoh: import java.util.regex.*; public class RegexExample1{ public static void main(String args[]){ //1st way Pattern p = Pattern.compile("peng.*");//. represents single character Matcher m = p.matcher("penggaris"); boolean b = m.matches(); //2nd way boolean b2=Pattern.compile(".s").matcher("as").matches(); //3rd way boolean b3 = Pattern.matches(".s", "as"); System.out.println(b+" "+b2+" "+b3); }} Nota dan sumber daripada: http://www.javatpoint.com/java-regex http://ww

beberapa kritik tentang semantik web

Image

perbezaan antara abstract class dan interface class dalam java

abstract Classes Interfaces abstract class can extend only one class or one abstract class at a time    interface can extend any number of interfaces at a time abstract  class  can extend from a class or from an abstract class     interface   can extend only from an interface abstract  class  can  have  both  abstract and concrete methods   interface can  have only abstract methods  A class can extend only one abstract class A class can implement any number of interfaces In abstract class keyword ‘abstract’ is mandatory to declare a method as an abstract   In an interface   keyword   ‘abstract’ is optional to declare a method as an abstract abstract  class can have  protected , public and public abstract methods   Interface can have only public abstract methods i.e. by default abstract class can have  static, final  or static final  variable with any access specifier   interface  can  have only static final (constant) variable i.e. by default http://beginnersbook.com/2013

Google Chart

Nak buat koding untuk graf? cuba guna Google Chart..Koding yang agak mudah dengan pelbagai jenis graf dan carta yang menarik disediakan oleh google dengan percuma..Dengan hanya menggunakan sedikit koding sahaja, graf anda sudah selesai. ni link ke google chart https://developers.google.com/chart/ https://developers.google.com/chart/ selamat mencuba..