Blog Archives

Swift Fractal Tree

Swift Fractal Tree Created By : Debasis Das (May 2016) Source Code // Swift Fractal Tree // Created by Debasis Das on 15/05/16. // Copyright © 2016 Knowstack. All rights reserved. import Cocoa import Foundation class Tree: NSView { let

Posted in algorithms, Swift Tagged with: , , , ,

HTML5 Canvas Fractal Tree

HTML5 Canvas Fractal Tree Created By:Debasis Das (may 2016) Source code <html> <head> <script type=”text/javascript”> function draw(){ var canvas = document.getElementById(‘canvas’); var context = canvas.getContext(‘2d’); context.beginPath(); context.rect(0,0,1500,1000); context.fillStyle = “white”; context.fill(); drawTree(context); } function drawTree(context){ branch(context, 100, 900, -90, 5);

Posted in algorithms, HTML5 Tagged with: ,

Word Frequency Algorithm in Objective C

Word Frequency Algorithm in Objective C Created By: Debasis Das (21-Aug-2015) In this post we will create two sample code/ approach for deriving the word count, word frequency of each word in a input string. Word Frequency Algorithm in Objective

Posted in algorithms, Cocoa, Objective C Tagged with: , , , ,

Converting Array of Dictionary to Tree, Org Structure

Converting Array of Dictionary to Tree, Org Structure Written By: Debasis Das (19-Apr-2015) The objective of this article is to convert an array of dictionaries (Key value pairs emp_id = some emp id & mgr_id = some emp id) to

Posted in algorithms, Cocoa, Objective C Tagged with: , , , ,

Algorithms in Java

Algorithms in Java Written By : Debasis Das (25-Jan-2015) Program to generate Excel Column Headers in Java In a Mac Excel there are 16384 Columns per sheet with the starting column of index 0 being A and the last column

Posted in algorithms, Java Tagged with: , , , ,

k-means Clustering Implementation in Cocoa, Objective C

K-means Clustering Implementation in Cocoa, Objective C Created By: Debasis Das (Definition of KMean Clustering: Sourced from Wiki) k-means clustering is a method of vector quantization, originally from signal processing, that is popular for cluster analysis in data mining. k-means clustering aims

Posted in algorithms, Cocoa, Generic, Objective C Tagged with: , , , , , ,

Minesweeper Game for Mac OS written in Cocoa, Objective C

Minesweeper Game for Mac OS written in Cocoa, Objective C (Part 1) Created By: Debasis Das (14-Oct-2014) Minesweeper Definition (Source Wiki) (Minesweeper is a single-player puzzle video game. The objective of the game is to clear a rectangular board containing

Posted in algorithms, Cocoa, Objective C Tagged with: , , , ,

BubbleSort Algorithm Visualization in Cocoa, Objective C

Bubble Sort Algorithm Visualization in Cocoa, Objective C In the tutorial we will create a sample application that creates a visualization for each step of a sorting algorithm, The sorting algorithm chosen here for visualization is bubblesort as the focus

Posted in algorithms, Cocoa, Objective C Tagged with: , , , , ,

Algorithms in Objective C

Sorting Algorithms in Objective – C There are a list of available sorting algorithms. Quicksort, heapsort and mergesort have better performance in comparison to insertionSort, selectionsort, bubblesort. In this article we will visit some of the commonly known sorting algorithms

Posted in algorithms, Cocoa, Objective C Tagged with: , , , ,

Recent Posts


Hit Counter provided by technology news