Based on the fact that distance metrics learned from the data reflect the actual similarity between objects better than the geometric distance, in this research I developed two distance functions learned from the data. The first one deals with complete datasets (datasets without missing values) while the second one deals with incomplete datasets (datasets with missing values). I integrated these distance within the frame work of several data mining algorithms from different types: KNN classifier for classification. For clustering I developed two algorithms: k-Means and Mean Shift clustering algorithms, and for active learning I developed a new approach for selective sampling.Loai received his PhD in Mathematics from Haifa University in 2014. He was a member of the departments of mathematics and computer science from 2011 at the Acadimic College of Sakhnin. He joined the department of Community Information Syttems at Zefat Academic College. His main research interests are in the fields of data mining and computer Vision