Research Article
An Optimized Machine Learning and Big Data Approach to Crime Detection
Algorithm 1
Identification of hotspots.
| 1: procedure HOTSPOT Generation | | 2: ←The number of hotspot | | 3: Output ←, the crime location in each hotspot | | 4: begin: | | 5: Initialize the midpoints m(1)={Random points} | | 6: for=1 to do | | 7: Add respective midpoint to the hotspot. | | 8: iter=1 | | 9: while True do | | 10: for each point do | | 11: min=0 | | 12: Cluster=None | | 13: for to do | | 14: dist= | | 15: if min<dist then | | 16: min=dist | | 17: cluster= | | 18: | | 19: iter=iter+1 | | 20: for to do | | 21: | | 22: break when past 2 S values are same | | 23: return S |
|