
Recent Posts
Archives
 October 2017
 September 2017
 August 2017
 July 2017
 June 2017
 May 2017
 April 2017
 March 2017
 February 2017
 January 2017
 December 2016
 November 2016
 October 2016
 September 2016
 August 2016
 July 2016
 May 2016
 April 2016
 February 2015
 July 2014
 June 2014
 May 2014
 February 2014
 January 2014
 December 2013
 November 2013
 October 2013
 August 2013
 June 2013
 December 2012
 November 2012
Categories
Meta
Monthly Archives: April 2017
Vectors in R
#Create the vector students < c(‘Ashish’,’Manas’,’Puspendu’) print(students) #Print the class print(class(students)) Advertisements
Posted in R, Uncategorized
Leave a comment
How do you analyze Algorithm
There are 2 analysis that need to be done : (1)Priori Analysis which is the theoretical analysis of the algorithm. (2)Posterior Analysis:This is the empirical analysis .In this actual analysis like running time and space are calculated.
Implement LinkedList Java
import org.testng.annotations.Test; class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } public class LinkedList { @Test public void testInsert() { ListNode l1=new ListNode(2) ; ListNode l2=new ListNode(1) ; ListNode l3=new ListNode(3) ; … Continue reading
Posted in Uncategorized
Leave a comment
Simple example using matplotlib
”’ Created on Apr 25, 2017 @author: asharda ”’ import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.show()
Posted in Python, Uncategorized
Leave a comment
Add all elements of the array using numpy
”’ Created on Apr 23, 2017 Add all elements of the array and using Axis @author: asharda ”’ import numpy as np num=np.array([[1,2],[3,4]]) print(np.sum(num))#Print 10 print(np.sum(num,axis=0))#Print [4,6] print(np.sum(num,axis=1))#Print [3,7]
Posted in Python
Leave a comment
Matrix Add,Multiply and Subtract using Python
”’ Created on Apr 23, 2017 Matrix Addition,Multiplication and Division using Python Numpy @author: asharda ”’ import numpy as np x=np.array([[5,5],[5,5]],dtype=np.float64) y=np.array([[1,2],[3,4]],dtype=np.float64) print(“Sub”,xy) print(“Multiply”,x*y) print(“Add”,x+y) This assumes you already have numpy installed.
Posted in Data Structures, Python
Leave a comment
Stream API Java
@Test public void testStream() { List list=new ArrayList<Integer>(); for (int i=0;i<100;i++) { list.add(i); } list.stream().forEach(System.out::println); }
Posted in Java
Leave a comment