Black box testing is the practice of writing tests without knowing the implementation of the code you're testing. White box test
ing is writing tests for code that you know the implementation of. White box testing allows you to test boundary conditions, branching, and edge cases more easily. One sample black box test, would be to pass in an empty array, and make sure that the program doesn't crash. What are three other black box tests you could run on any sorting algorithm?
<u>First test:</u> Give a list of disordered numbers to the sorting algorithm an examine if the output is correctly sorted.
<u>Second test:</u> Give a list of ordered numbers to the sorting algorithm an analyze if the output is still correctly ordered.
<u>Third test:</u> Give a list of ordered numbers and some non-numeric values to the sorting algorithm and check how is managed the exception in case of error or if the output is correctly ordered.
It is a computer aided technique of searching and evaluating a bulk of data in order to obtain useful information.
This technique searches through the data to find hidden patterns and uses statistical methods to find relationship among data for finding predictive information and for classification of data.
This is a mixture of different disciplines which include machine learning, statistics and artificial intelligence and also some mathematical methods.
Often the useful information is extracted from enormous database using modeling technique which is used to build a model from instances of the data where the solution is known and later apply this model on the instances where the solution is unknown.
In unsupervised data mining, the data analysis is not done by using modeling technique. In other words the labels are provided in order not draw inferences and prediction from data sets. Example is clustering.
In supervised data mining the model is developed to make inferences and classification. Example is neural networks.
For example data mining is used in Medicine industry to provide more accurate diagnostics and treatments on the basis of patient's medical history , physical examination or different patient tests data.
Data mining also makes it possible to manage health resources more efficiently and cost-effectively by detecting risks, predicting diseases in certain sections of the population or predicting hospitalization duration.