abhi12ravi

Aug4

Aug 4th, 2014
928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.68 KB | None | 0 0
  1. 9:59 PM <HACKINTOSHRAO> hello guys
  2. 9:59 PM → chandankumar joined ([email protected])
  3. 10:00 PM <hackdroid> hello
  4. 10:01 PM <abhiramr> Ola!
  5. 10:01 PM <HACKINTOSHRAO> had dinner , all of u ??
  6. 10:01 PM <abhiramr> HACKINTOSHRAO: Naah, skipped.
  7. 10:01 PM <hackdroid> @hackintoshrao nope
  8. 10:02 PM <fierch> yeah, had
  9. 10:02 PM <HACKINTOSHRAO> gimme 2 min
  10. 10:03 PM <abhiramr> sure
  11. 10:03 PM <hackdroid> @hackintoshrao ahaaa
  12. 10:03 PM <abhiramr> fierch: Who are you?
  13. 10:03 PM <hackdroid> @abhiramr its j1
  14. 10:04 PM <abhiramr> fierch: You can PM me if you'd like to be anonymous here. I'm maintaining a list of nicks to avoid profainty.
  15. 10:04 PM <abhiramr> profanity*
  16. 10:04 PM <fierch> No, I am getting banned on freenode
  17. 10:05 PM <fierch> so, connected through scrollback
  18. 10:05 PM <abhiramr> okay cool
  19. 10:05 PM <fierch> and if I sign in you get 2 messages from me
  20. 10:05 PM → ciefte2 joined (guest-cief@conference/jsconf/x-qfxzdfpjlgqhxaxw)
  21. 10:05 PM <ciefte2> @abhiramr
  22. 10:05 PM <fierch> Jeevan here
  23. 10:05 PM <abhiramr> Okay, cool.
  24. 10:05 PM <abhiramr> ciefte2: Yeah?
  25. 10:06 PM <HACKINTOSHRAO> guys
  26. 10:06 PM <HACKINTOSHRAO> how was the video ??
  27. 10:06 PM <fierch> didn't watch.
  28. 10:06 PM <HACKINTOSHRAO> anyone here missed out on watching the cideo ?
  29. 10:06 PM <fierch> yeah
  30. 10:06 PM <HACKINTOSHRAO> video*\
  31. 10:06 PM <hackdroid> @hackintoshrao i am watching 4 th one
  32. 10:07 PM <abhiramr> HACKINTOSHRAO: Yes, I wasn't able to. Can anyone give a quick summary?
  33. 10:08 PM <hackdroid> @abhiramr richards only right?
  34. 10:08 PM <HACKINTOSHRAO> it would have been great on watching the video , anyways its fine
  35. 10:08 PM <HACKINTOSHRAO> yes 4 th video from the playlist
  36. 10:08 PM <abhiramr> yeah
  37. 10:08 PM <abhiramr> hackdroid: ^^ I was on the move. Will catch up after today's session.
  38. 10:09 PM ← ciefte2 left (guest-cief@conference/jsconf/x-qfxzdfpjlgqhxaxw)
  39. 10:09 PM <HACKINTOSHRAO> who else here are listening to the convo ??
  40. 10:10 PM <HACKINTOSHRAO> please give your attendance
  41. 10:10 PM <Vaishnavi> Me
  42. 10:10 PM <fierch> jeevan
  43. 10:10 PM <Vaishnavi> :P
  44. 10:10 PM <abhiramr> Abhiram
  45. 10:11 PM <Abhishek_Jain> me
  46. 10:11 PM <hackdroid> @hackintoshrao me
  47. 10:11 PM <Abhishek_Jain> and i am also watching the 4th video now
  48. 10:12 PM <HACKINTOSHRAO> 5 people here , their names are ME , jeevan , :P , abhiram , me , @hackintoshrao me and the last name is weird " and i am also watching the 4th video now"
  49. 10:12 PM <fierch> Haha
  50. 10:13 PM <Abhishek_Jain> Abhishek Jain
  51. 10:13 PM ⇐ sant0sh quit ([email protected]) Ping timeout: 264 seconds
  52. 10:13 PM <Abhishek_Jain> :(
  53. 10:13 PM → shreesha joined ([email protected])
  54. 10:13 PM <hackdroid> farhaan
  55. 10:13 PM <HACKINTOSHRAO> " and i am also watching the 4th video now" , welcome to the session
  56. 10:13 PM → tushara joined (tushara@conference/jsconf/x-fldixdygcmxmpezw)
  57. 10:13 PM <HACKINTOSHRAO> ok lets start
  58. 10:13 PM <Abhishek_Jain> @hackintoshrao dude my name is abhishek :P
  59. 10:14 PM <fierch> @abhishek-jain you're romeo
  60. 10:15 PM <abhiramr> ramrutha: shreesha tushara Vaishnavi you guys listening?
  61. 10:15 PM <HACKINTOSHRAO> so we ended the discussion yesterday after we spoke about time complexities
  62. 10:15 PM <HACKINTOSHRAO> and how to compare and categorize algos
  63. 10:15 PM <HACKINTOSHRAO> right ??
  64. 10:15 PM <Vaishnavi> Yeah
  65. 10:15 PM <shreesha> yes!
  66. 10:15 PM <abhiramr> yes
  67. 10:16 PM <HACKINTOSHRAO> atleast by tomorrow trying watching the 4th video completly
  68. 10:16 PM <HACKINTOSHRAO> the discussion will be easier
  69. 10:16 PM <HACKINTOSHRAO> and interesting
  70. 10:17 PM <tushara> yes
  71. 10:17 PM <HACKINTOSHRAO> so anyone have an answer for yesterdays question ?? those who want to go for the ansswer please say +1
  72. 10:18 PM <HACKINTOSHRAO> anyone ??
  73. 10:18 PM <abhiramr> +1
  74. 10:19 PM <HACKINTOSHRAO> anyone else gave a try ??
  75. 10:19 PM <abhiramr> For those of you searching, this is the question: if you increase the no of inputs of bubble sort by 'X' times , by how many times does the running time of the program increases??
  76. 10:19 PM <abhiramr> 'X' takes values from 2 to 10
  77. 10:20 PM <HACKINTOSHRAO> abhi
  78. 10:21 PM <HACKINTOSHRAO> doesnt look like anyone else gave it a try
  79. 10:21 PM <tushara> increases from 4 to 100 (2^2 to 10^2)
  80. 10:21 PM <HACKINTOSHRAO> u go ahead
  81. 10:21 PM <HACKINTOSHRAO> ok
  82. 10:21 PM <HACKINTOSHRAO> whats your answer
  83. 10:21 PM <HACKINTOSHRAO> abhi
  84. 10:21 PM <HACKINTOSHRAO> @tushara gave an asnwer
  85. 10:21 PM → sant0sh joined ← shreesha left
  86. 10:22 PM <abhiramr> I have an answer. But I don't know if it's correct.
  87. 10:22 PM <HACKINTOSHRAO> @santosh : probably you are the best python programmer here , whenever you have help people out here ans please share your views
  88. 10:22 PM → shreesha joined ([email protected])
  89. 10:22 PM <HACKINTOSHRAO> @abhi
  90. 10:22 PM <HACKINTOSHRAO> please share
  91. 10:22 PM ← shreesha left ([email protected])
  92. 10:22 PM <hackdroid> @hackintoshrao I WANT TO LEARN PYTHON
  93. 10:23 PM <HACKINTOSHRAO> @hackdroid
  94. 10:23 PM <HACKINTOSHRAO> wait
  95. 10:23 PM <hackdroid> @hackintoshrao done with the blog?
  96. 10:23 PM <fierch> sant0sh
  97. 10:23 PM <HACKINTOSHRAO> yes , adding more information
  98. 10:23 PM <abhiramr> complexity of bubble sort is n squared. so if input size becomes x times, its (xn) sqaured
  99. 10:23 PM <HACKINTOSHRAO> @abhi , please sahre your answer
  100. 10:23 PM <abhiramr> *squared
  101. 10:24 PM <HACKINTOSHRAO> abhi when you say it is n squared , N is like a variable which takes values from 2 to 10
  102. 10:24 PM <abhiramr> yes
  103. 10:25 PM <HACKINTOSHRAO> so the answer is 2 , 9 , 16 , 25 , 36 , 49 , 64 , 81 , 100
  104. 10:25 PM <HACKINTOSHRAO> as tushara pointed out
  105. 10:25 PM <HACKINTOSHRAO> can spomeone explain the answer
  106. 10:25 PM — fierch claps
  107. 10:25 PM <HACKINTOSHRAO> elaborate
  108. 10:25 PM <maheshkumar> Okay
  109. 10:26 PM <tushara> ok....its because of the 2 "for loops" i.e, one for the steps another for the rearrangements in each iteration!!
  110. 10:27 PM <tushara> (i used C....i wanna learn python!!! ;) :p)
  111. 10:28 PM <HACKINTOSHRAO> so any algorithm if it is categorized as 'theta of N square ' that means if the no of inputs increases by two times the running time increases by 4 times
  112. 10:28 PM <HACKINTOSHRAO> if the no of input increases by 3 times the runnign time increases by 9
  113. 10:28 PM <HACKINTOSHRAO> if the no of input increases by 4 times the runnign time increases by 16
  114. 10:29 PM → abraar joined ([email protected])
  115. 10:29 PM <HACKINTOSHRAO> if the no of input increases by 5 times the running time increases by 25times
  116. 10:29 PM <HACKINTOSHRAO> if the no of input increases by 6 times the running time increases by 36 times
  117. 10:29 PM <HACKINTOSHRAO> some one continue the sequence
  118. 10:29 PM <abhiramr> it's okay. we got the drift :P
  119. 10:29 PM <fierch> :P
  120. 10:29 PM → shreesha joined ([email protected])
  121. 10:30 PM <abhiramr> if you still want it,
  122. 10:30 PM <HACKINTOSHRAO> yes
  123. 10:30 PM <HACKINTOSHRAO> i want it
  124. 10:30 PM <HACKINTOSHRAO> !
  125. 10:30 PM <fierch> if the no of input increases by 7 times the running time increases by 49 times
  126. 10:30 PM <abhiramr> if the no of input increases by 8 times the running time increases by 64 times
  127. 10:30 PM ← shreesha left ([email protected])
  128. 10:30 PM <fierch> if the no of input increases by 9 times the running time increases by 81 times
  129. 10:30 PM <abhiramr> if the no of input increases by 9 times the running time increases by 181 times
  130. 10:30 PM <fierch> if the no of input increases by 10 times the running time increases by 100 times
  131. 10:30 PM <abhiramr> fierch: 81?
  132. 10:31 PM <tushara> f the no of input increases by 10 times the running time increases by 100 times
  133. 10:31 PM <HACKINTOSHRAO> yes
  134. 10:31 PM <fierch> abhiramr 181?
  135. 10:31 PM <HACKINTOSHRAO> good ppl :D
  136. 10:31 PM <HACKINTOSHRAO> 81 times :P
  137. 10:31 PM <abhiramr> damn. sorry, my bad :
  138. 10:31 PM <tushara> ;)
  139. 10:32 PM <abhiramr> if the no of input increases by 9 times the running time increases by 81 times
  140. 10:32 PM — hackdroid afk
  141. 10:32 PM <HACKINTOSHRAO> ok now lets say there is an algorithm which is categorized as 'theta of N (not N squared)' , now form a sequence for it now
  142. 10:33 PM <tushara> if the no of input increases by 2 times the running time increases by 2 times
  143. 10:33 PM <HACKINTOSHRAO> continue ppl
  144. 10:33 PM <HACKINTOSHRAO> race
  145. 10:33 PM <HACKINTOSHRAO> race
  146. 10:33 PM <fierch> if the no of input increases by 2 times the running time increases by 2 times
  147. 10:33 PM <HACKINTOSHRAO> common faaaaaaaaast
  148. 10:33 PM <tushara> if the no of input increases by 3 times the running time increases by 3 times
  149. 10:33 PM <abhiramr> if the no of input increases by 3 times the running time increases by 3 times
  150. 10:33 PM <HACKINTOSHRAO> go go go
  151. 10:33 PM <tushara> if the no of input increases by 4 times the running time increases by 4 times
  152. 10:34 PM <abhiramr> if the no of input increases by 4 times the running time increases by 4 times
  153. 10:34 PM <abhiramr> if the no of input increases by 5 times the running time increases by 5 times
  154. 10:34 PM <tushara> if the no of input increases by 5 times the running time increases by 5 times
  155. 10:34 PM <abhiramr> if the no of input increases by 6 times the running time increases by 6 times
  156. 10:34 PM <abhiramr> if the no of input increases by 7 times the running time increases by 7 times
  157. 10:34 PM <tushara> if the no of input increases by 7 times the running time increases by 7 time
  158. 10:34 PM → ark101 joined (ark10@conference/jsconf/x-jcyfzlufazerqmli)
  159. 10:34 PM <ark101> if the no of input increases by 6 times the running time increases by 6 times
  160. 10:34 PM <abhiramr> if the no of input increases by 8 times the running time increases by 8 times
  161. 10:34 PM <tushara> if the no of input increases by 9 times the running time increases by 9 time
  162. 10:34 PM <abhiramr> if the no of input increases by 9 times the running time increases by 9 times
  163. 10:34 PM <fierch> ok. stop spamming you buggers
  164. 10:34 PM <tushara> if the no of input increases by 10 times the running time increases by 10 time
  165. 10:34 PM <abhiramr> if the no of input increases by 10 times the running time increases by 10 times
  166. 10:34 PM <ark101> if the no of input increases by 11 times the running time increases by 11 times
  167. 10:34 PM <abhiramr> yo, enough!
  168. 10:35 PM <HACKINTOSHRAO> cool !! ty ppl ....this is not lame !! this works !
  169. 10:35 PM <fierch> for(i=1;i<infiniti;i++)
  170. 10:35 PM <fierch> {
  171. 10:35 PM <HACKINTOSHRAO> there is a story behind this .
  172. 10:35 PM <fierch> if the no of inputs increases by i times the running time increases by i times
  173. 10:35 PM <fierch> }
  174. 10:35 PM <tushara> okay
  175. 10:35 PM <fierch> ok.. hackintosh came inside the loop -_-
  176. 10:35 PM <tushara> story??
  177. 10:36 PM <tushara> haha karthic inside look :D
  178. 10:36 PM <HACKINTOSHRAO> ok now lets say there is an algorithm which is categorized as 'theta of N Cube (not N squared or N)' , now form a sequence for it now
  179. 10:36 PM <tushara> *loop
  180. 10:36 PM <HACKINTOSHRAO> fast
  181. 10:36 PM <abhiramr> if the no of input increases by 2 times the running time increases by 8 times
  182. 10:36 PM <abhiramr> if the no of input increases by 3 times the running time increases by 27 times
  183. 10:36 PM <HACKINTOSHRAO> sexy
  184. 10:36 PM <abhiramr> if the no of input increases by 4 times the running time increases by 64 times
  185. 10:36 PM <HACKINTOSHRAO> go
  186. 10:36 PM <abhiramr> if the no of input increases by 5 times the running time increases by 125 times
  187. 10:36 PM <fierch> abhiramr enough
  188. 10:36 PM <HACKINTOSHRAO> abhi is the sole winner :D
  189. 10:36 PM <HACKINTOSHRAO> @fierch
  190. 10:36 PM <fierch> @abhiramr yeah. all hail abhi
  191. 10:36 PM <fierch> :P
  192. 10:36 PM <abhiramr> if the no of input increases by 6 times the running time increases by 216 times
  193. 10:36 PM <HACKINTOSHRAO> pelase dont stop
  194. 10:37 PM <HACKINTOSHRAO> there is a reason
  195. 10:37 PM <abhiramr> if the no of input increases by 7 times the running time increases by 314 times
  196. 10:37 PM → the_codebot|away joined ([email protected])
  197. 10:37 PM <HACKINTOSHRAO> its not bad to learn like this
  198. 10:37 PM <fierch> really? Okay. Bring it on
  199. 10:37 PM <HACKINTOSHRAO> @abhi
  200. 10:37 PM <HACKINTOSHRAO> go on
  201. 10:37 PM <tushara> if the no of input increases by 8 times the running time increases by 512 time
  202. 10:37 PM the_codebot|away → the_codebot
  203. 10:37 PM <abhiramr> if the no of input increases by 8 times the running time increases by 512 times
  204. 10:37 PM <tushara> if the no of input increases by 9 times the running time increases by 729 times
  205. 10:37 PM — fierch calculating the cube of 9
  206. 10:37 PM <abhiramr> if the no of input increases by 9 times the running time increases by 729 times
  207. 10:38 PM <abhiramr> if the no of input increases by 10 times the running time increases by 1000 times
  208. 10:38 PM <abhiramr> done!
  209. 10:38 PM <abhiramr> :D
  210. 10:38 PM <tushara> @fierch if the no of input increases by 10 times the running time increases by 1000 times
  211. 10:38 PM <tushara> @fierch : Sry fr the tag....i dunno how it came there....
  212. 10:39 PM <abhiramr> tushara: Scrollback's effects :P
  213. 10:39 PM <fierch> no problem. Scrollback tags automatically
  214. 10:40 PM <tushara> ya ;)
  215. 10:40 PM → karthic_ joined ([email protected])
  216. 10:40 PM <karthic_> people open up your calculators now
  217. 10:41 PM <fierch> yeah, done.
  218. 10:41 PM <karthic_> let me know when you guys open up your calculators
  219. 10:41 PM <karthic_> put it into scientific mode
  220. 10:41 PM <abhiramr> done
  221. 10:41 PM ⇐ HACKINTOSHRAO quit ([email protected]) Ping timeout: 255 seconds
  222. 10:41 PM <abhiramr> that might be difficult
  223. 10:42 PM <karthic_> ok, now lets say there is an algorithm which is categorized as 'theta of logN to base 10 (not N squared,cube or N)' , now form a sequence for it now
  224. 10:42 PM <karthic_> lets c how many can do this
  225. 10:43 PM <fierch> if the no of input increases by 2 times the running time increases by 0.301029995 times
  226. 10:43 PM <karthic_> ok
  227. 10:43 PM <karthic_> go
  228. 10:43 PM <abhiramr> if the no of input increases by 2 times the running time increases by 0.301 times
  229. 10:44 PM <fierch> if the no of input increases by 3 times the running time increases by 0.47712125472 times
  230. 10:44 PM <fierch> abhiram you're slow
  231. 10:44 PM <tushara> if the no of input increases by 3 times the running time increases by 0.4771 time
  232. 10:44 PM <fierch> buck uo
  233. 10:44 PM <abhiramr> if the no of input increases by 3 times the running time increases by 0.4771 times
  234. 10:44 PM <abhiramr> if the no of input increases by 3 times the running time increases by 0.605 times
  235. 10:44 PM <tushara> if the no of input increases by 5 times the running time increases by 0.69897 time
  236. 10:44 PM <fierch> good
  237. 10:44 PM <abhiramr> if the no of input increases by 4 times the running time increases by 0.602 times
  238. 10:44 PM <tushara> if the no of input increases by 4 times the running time increases by 0.6020599 time
  239. 10:44 PM <abhiramr> if the no of input increases by 5 times the running time increases by 0.6989 times
  240. 10:45 PM <abhiramr> if the no of input increases by 5 times the running time increases by 0.7781 times
  241. 10:45 PM <abhiramr> if the no of input increases by 6 times the running time increases by 0.7781 times
  242. 10:45 PM <tushara> if the no of input increases by 6 times the running time increases by 0.77815 times
  243. 10:45 PM <abhiramr> if the no of input increases by 7 times the running time increases by 0.8451 times
  244. 10:45 PM <tushara> if the no of input increases by 7 times the running time increases by 0.84509 times
  245. 10:45 PM <abraar> If no of inputs increase by 8 times the running time increases by .9030 times
  246. 10:45 PM <abhiramr> if the no of input increases by 8 times the running time increases by 0.9031 times
  247. 10:45 PM <tushara> if the no of input increases by 8 times the running time increases by 0.90308 time
  248. 10:45 PM <abhiramr> if the no of input increases by 10 times the running time increases by 1 times
  249. 10:46 PM <tushara> if the no of input increases by 9 times the running time increases by 0.95424 time
  250. 10:46 PM <karthic_> ok good
  251. 10:46 PM <karthic_> now here is my question
  252. 10:46 PM <karthic_> answet them one by one
  253. 10:46 PM → carnal joined (guest-carn@conference/jsconf/x-ihxndbvshmbgpetd)
  254. 10:46 PM <carnal> sup mofos?
  255. 10:47 PM <fierch> abhiramr: note down
  256. 10:47 PM <karthic_> in case of an algorithm with complexity 'theta of N ' , now many times did the running time increase when the number of inputs increased by 10 times ??
  257. 10:47 PM <karthic_> how many*
  258. 10:47 PM <abhiramr> carnal: Please refrain from using profanity,
  259. 10:47 PM <abraar> 10 times
  260. 10:48 PM <tushara> 10
  261. 10:48 PM <abhiramr> 10
  262. 10:48 PM <karthic_> in case of an algorithm with complexity 'theta of N square' , how many times did the running time increase when the number of inputs increased by 10 times ??
  263. 10:48 PM <hackdroid> 100
  264. 10:48 PM <ark101> 100
  265. 10:48 PM <tushara> 100
  266. 10:48 PM <karthic_> in case of an algorithm with complexity 'theta of logN to base 10' , how many times did the running time increase when the number of inputs increased by 10 times ??
  267. 10:48 PM <abhiramr> 1
  268. 10:48 PM <tushara> 1
  269. 10:49 PM <hackdroid> 1
  270. 10:49 PM <karthic_> so which is the better algorithm ??
  271. 10:49 PM <hackdroid> log
  272. 10:49 PM <abhiramr> one with logN complexity
  273. 10:49 PM <ark101> last one
  274. 10:49 PM <karthic_> algorithm with the complexity theta of LogN or theta of N ??
  275. 10:49 PM <tushara> last one
  276. 10:49 PM <hackdroid> logN
  277. 10:49 PM <tushara> log(n)
  278. 10:50 PM <abraar> LogN to base 10
  279. 10:50 PM <Abhishek_Jain> log n
  280. 10:50 PM <Abhishek_Jain> sorry net went out
  281. 10:50 PM ← carnal left (guest-carn@conference/jsconf/x-ihxndbvshmbgpetd)
  282. 10:51 PM <Abhishek_Jain> log n is way better than n as its a exponential graph
  283. 10:51 PM <Abhishek_Jain> correct me if i am wrong
  284. 10:52 PM <karthic_> now which amongst this is better ?? Algorithm with time complexity 'theta of N' or 'theta of n square' ??
  285. 10:52 PM <fierch> theta of N
  286. 10:52 PM <abhiramr> theta of N
  287. 10:52 PM <tushara> theta of n
  288. 10:52 PM <Vaishnavi> Theta of n
  289. 10:52 PM <fierch> @vaishnavi2
  290. 10:53 PM <karthic_> good
  291. 10:53 PM <karthic_> all of you are right
  292. 10:53 PM <karthic_> lets say we have a 2 sorting algorithm ..
  293. 10:53 PM <karthic_> one is X and another is Y
  294. 10:53 PM <tushara> ok
  295. 10:53 PM <karthic_> the time complexity of X is 'theta of logN' and Y is 'N' which one is better ??
  296. 10:54 PM <tushara> x
  297. 10:54 PM <tushara> *X
  298. 10:54 PM <abhiramr> X
  299. 10:54 PM <ark101> X
  300. 10:54 PM <Abhishek_Jain> X
  301. 10:54 PM <Vaishnavi> X
  302. 10:55 PM <karthic_> now , which of these are better 'theta of LogN' or 'theta of NlogN'
  303. 10:55 PM <karthic_> ??
  304. 10:56 PM <Abhishek_Jain> theta of log n
  305. 10:56 PM <Vaishnavi> Log n
  306. 10:56 PM <tushara> theta logn
  307. 10:56 PM <abhiramr> I don't know.
  308. 10:56 PM <Vaishnavi> Theta log n*
  309. 10:57 PM <karthic_> yes
  310. 10:57 PM <karthic_> al of u r right
  311. 10:57 PM <ark101> first one
  312. 10:57 PM <karthic_> now again there are 2 sorting algorithms , A and B
  313. 10:57 PM <Abhishek_Jain> theta Nlogn will be more take more than theta of logn
  314. 10:58 PM <Abhishek_Jain> theta Nlogn take more than theta of logn*
  315. 10:58 PM <karthic_> the time complexity of A is 'theta of N square and the time complexity of B os 'theta of NLogN' , which of these are better
  316. 10:58 PM <karthic_> ??
  317. 10:58 PM <Vaishnavi> N log n
  318. 10:58 PM → palike1 joined (guest-pali@conference/jsconf/x-vjccnfeaoqifcdos)
  319. 10:58 PM <Abhishek_Jain> theta of nlogn
  320. 10:58 PM <palike1> depends on n
  321. 10:58 PM <abhiramr> one second
  322. 10:58 PM <abhiramr> I didn't get the previous analogy
  323. 10:58 PM <karthic_> ltes say for large inputs
  324. 10:58 PM <Abhishek_Jain> yea actually depends on n...for small values n square
  325. 10:59 PM <karthic_> @alike:large no of inputs
  326. 10:59 PM <abhiramr> How's n logn not better than log n ?
  327. 10:59 PM <Abhishek_Jain> large values theta of nlogn will be efficient
  328. 10:59 PM <tushara> nlogn
  329. 10:59 PM <karthic_> NlogN is better than N square for decent no of inputs
  330. 10:59 PM <tushara> coz logn is smallest....if thats multiplied ny n, its obvi larger than nlogn
  331. 11:00 PM <Abhishek_Jain> 2abhiram consider a value of n and try to check.. correct me if i am wrong
  332. 11:00 PM <palike1> well nlog(n)= log(n^n)
  333. 11:00 PM <palike1> so for small values nlog(n) is smaller than n^2
  334. 11:00 PM <Abhishek_Jain> Palikel +1
  335. 11:01 PM <tushara> awesome
  336. 11:01 PM <karthic_> @palike +1 , thank you for volunteering yourself for this initiative
  337. 11:01 PM <palike1> chetusa.. :P using guest acc
  338. 11:01 PM <karthic_> welsome to the group
  339. 11:01 PM <karthic_> lol !
  340. 11:01 PM <karthic_> okay
  341. 11:01 PM <karthic_> lets continue
  342. 11:02 PM <karthic_> so algorithm with complexity 'theta of NLogN' is better than algorithm with complexity 'theta of N square ' in general
  343. 11:02 PM <karthic_> do you guys agree ??
  344. 11:02 PM <abhiramr> palike1: +1. got it
  345. 11:02 PM <karthic_> how many +1 ??
  346. 11:02 PM <abhiramr> +2
  347. 11:02 PM <abhiramr> * +1
  348. 11:02 PM <tushara> +1
  349. 11:03 PM <Vaishnavi> +1
  350. 11:03 PM <Abhishek_Jain> +1
  351. 11:03 PM <Abhishek_Jain> i already gave him one :P
  352. 11:03 PM <ark101> +1
  353. 11:04 PM <karthic_> thats why 'Merge Sort is better sorting algorithm than bubble sort '
  354. 11:04 PM <karthic_> because the worst time complexity of merge sort is 'NLogN' whereas of the bubble sort is 'N square'
  355. 11:05 PM <Abhishek_Jain> @karthic cool
  356. 11:05 PM <Abhishek_Jain> :P
  357. 11:05 PM <tushara> yes average case too
  358. 11:05 PM <karthic_> so merge sort is way better sorting algo compared to bubble sort for sorting large number of inputs
  359. 11:05 PM <tushara> @karthic +1
  360. 11:05 PM <Vaishnavi> +1
  361. 11:06 PM <abhiramr> karthic_: Can we have fixed slots for the session? It's 11 and people might have to sleep.
  362. 11:06 PM <fierch> he wants to sleep :p
  363. 11:07 PM <karthic_> take your calci and do a simple calculation for 1000 inputs , N square = 1000 square and NlogN = 1000log1000 , c the difference , the difference gets bigger for larger and larger inputs ,
  364. 11:07 PM <palike1> 1000^2=1000000
  365. 11:07 PM <karthic_> so even if you have a good computer its of no use if you run a crappy algorithm when you have huge number of inputs
  366. 11:07 PM <palike1> 1000log(1000) is 100000
  367. 11:07 PM <tushara> no its 3000
  368. 11:07 PM <Abhishek_Jain> 3000
  369. 11:07 PM <palike1> base?
  370. 11:08 PM <palike1> crap!
  371. 11:08 PM <Abhishek_Jain> base 10
  372. 11:08 PM <palike1> correct
  373. 11:08 PM <tushara> base 10
  374. 11:08 PM <palike1> 3000
  375. 11:08 PM <palike1> my bad...
  376. 11:08 PM <karthic_> base 2 is generrally used in divide conquer algos
  377. 11:08 PM <palike1> lol!
  378. 11:08 PM <karthic_> u r supposed to use base 2
  379. 11:08 PM <tushara> oh ok
  380. 11:08 PM <karthic_> but still thousands of times of difference
  381. 11:09 PM <karthic_> that is only for 1000 inputs , now lets for 1 million inputs
  382. 11:09 PM <karthic_> it makes a huge difference right ?
  383. 11:09 PM <karthic_> how many +1 ?
  384. 11:09 PM <tushara> +1
  385. 11:09 PM <ark101> +1
  386. 11:09 PM <abhiramr> yeah +1
  387. 11:09 PM <karthic_> the discussion will go on for 10 more min
  388. 11:09 PM <Abhishek_Jain> +1
  389. 11:10 PM <Vaishnavi> +1
  390. 11:10 PM <abhiramr> fierch: Not really, just structuring the sessions. :)
  391. 11:10 PM <karthic_> so now given the time coplexity of 2 algorithms you guys can say which one is better , possible right ??
  392. 11:11 PM <karthic_> complexity*
  393. 11:11 PM <fierch> yes
  394. 11:11 PM <Vaishnavi> Kinda
  395. 11:11 PM <abhiramr> yeah
  396. 11:11 PM <Abhishek_Jain> yea
  397. 11:11 PM <karthic_> now ill ask yes no questions
  398. 11:11 PM <karthic_> i ant the answer
  399. 11:11 PM <karthic_> want*
  400. 11:11 PM <fierch> ok
  401. 11:11 PM <karthic_> answer should be yes or no
  402. 11:12 PM <Abhishek_Jain> ok cool
  403. 11:12 PM <Abhishek_Jain> that will be fun
  404. 11:12 PM <karthic_> 'theta of N' is better than 'logN'
  405. 11:12 PM <karthic_> whos first
  406. 11:12 PM <karthic_> ?
  407. 11:12 PM <abraar> No
  408. 11:12 PM <Abhishek_Jain> logn
  409. 11:12 PM <karthic_> abraar won
  410. 11:12 PM <ark101> no
  411. 11:12 PM <abraar> Yes :p
  412. 11:12 PM <Vaishnavi> N
  413. 11:12 PM <Abhishek_Jain> no
  414. 11:12 PM <Vaishnavi> No
  415. 11:12 PM <karthic_> next question
  416. 11:12 PM <karthic_> lets c who asnwers first
  417. 11:12 PM <palike1> no
  418. 11:13 PM <abraar> Yes..for i won..no is the answer
  419. 11:13 PM <Abhishek_Jain> karhic next ques
  420. 11:13 PM <karthic_> 'theta of N square ' is better than 'theta of NlogN' for large no of inputs
  421. 11:14 PM <Abhishek_Jain> no
  422. 11:14 PM <ark101> no
  423. 11:14 PM <tushara> no
  424. 11:14 PM <karthic_> abhishek wins
  425. 11:14 PM <Vaishnavi> N
  426. 11:14 PM <abhiramr> no
  427. 11:14 PM <Abhishek_Jain> yay
  428. 11:14 PM <palike1> no
  429. 11:14 PM <Vaishnavi> No
  430. 11:14 PM <karthic_> next question
  431. 11:15 PM <karthic_> 'theta of n square ' is better than 'theta of n cube'
  432. 11:15 PM <palike1> yes
  433. 11:15 PM <Abhishek_Jain> yes
  434. 11:15 PM <Vaishnavi> Ye
  435. 11:15 PM <fierch> yes
  436. 11:15 PM <tushara> @palike1 yes
  437. 11:15 PM <ark101> yes
  438. 11:15 PM <abhiramr> yes
  439. 11:15 PM <palike1> wait
  440. 11:15 PM <palike1> for small or big inputs
  441. 11:15 PM <palike1> ?
  442. 11:15 PM ⇐ Kishan_Gupta quit ([email protected]) Ping timeout: 240 seconds
  443. 11:15 PM <palike1> for small no
  444. 11:15 PM <karthic_> @palike wins
  445. 11:15 PM <palike1> for large inputs yes
  446. 11:15 PM <karthic_> foral possible inputs
  447. 11:15 PM <tushara> yes for all...
  448. 11:15 PM <tushara> inputs
  449. 11:16 PM ⇐ the_codebot quit ([email protected]) Ping timeout: 255 seconds
  450. 11:16 PM <fierch> palike1 explain
  451. 11:16 PM — abhiramr imagines everyone wide-eyed waiting for the question
  452. 11:16 PM <karthic_> n cube is always smaller than n square - mathematical induction
  453. 11:16 PM <palike1> oh.. number of inputs..
  454. 11:16 PM <karthic_> thats all
  455. 11:16 PM <karthic_> no questions :D
  456. 11:16 PM <palike1> my bad..
  457. 11:16 PM <Abhishek_Jain> oh
  458. 11:16 PM <palike1> @karthic not the input itself..
  459. 11:16 PM <palike1> :P
  460. 11:16 PM <karthic_> lsat 5 min
  461. 11:16 PM <Abhishek_Jain> this much only
  462. 11:16 PM <fierch> abhuram lol
  463. 11:16 PM <karthic_> last 5 min
  464. 11:17 PM <karthic_> no given a chance to design algorithms how many of you want to design algorithm of complexity 'theta of N cube' ??
  465. 11:17 PM <fierch> tomorrow's assignment? :P
  466. 11:17 PM — palike1 remembers the same statement fmr y'day
  467. 11:17 PM — abhiramr thanks fierch for killing my name
  468. 11:17 PM <karthic_> now, given a chance to design algorithms how many of you want to design algorithm of complexity 'theta of N cube' ??
  469. 11:17 PM — fierch accepts
  470. 11:17 PM <karthic_> now given a chance to design algorithms how many of you want to design algorithm of complexity 'theta of N cube' ??
  471. 11:17 PM <palike1> yes or no> O.o
  472. 11:17 PM <tushara> 3 loops...i guess no!!
  473. 11:18 PM <karthic_> now given a chance to design algorithms how many of you want to design algorithm of complexity 'theta of N cube' ??
  474. 11:18 PM <karthic_> now given a chance to design algorithms how many of you want to design algorithm of complexity 'theta of N cube' ??
  475. 11:18 PM <Abhishek_Jain> yea tushara one way
  476. 11:18 PM <fierch> karthic, only if there is no other way of designing
  477. 11:18 PM <karthic_> now given a chance to design algorithms how many of you want to design algorithm of complexity 'theta of N cube' ??
  478. 11:18 PM <karthic_> now given a chance to design algorithms how many of you want to design algorithm of complexity 'theta of N cube' ??
  479. 11:18 PM → viggy_prabhu joined ([email protected])
  480. 11:18 PM <karthic_> now given a chance to design algorithms how many of you want to design algorithm of complexity 'theta of N cube' ??
  481. 11:18 PM <karthic_> now given a chance to design algorithms how many of you want to design algorithm of complexity 'theta of N cube' ??
  482. 11:18 PM <tushara> depends!!!
  483. 11:18 PM <tushara> oye
  484. 11:18 PM <karthic_> now given a chance to design algorithms how many of you want to design algorithm of complexity 'theta of N cube' ??
  485. 11:18 PM <palike1> how is that yes or no?
  486. 11:18 PM <Abhishek_Jain> i would like to @karthic
  487. 11:18 PM <abhiramr> no
  488. 11:18 PM <Vaishnavi> Obvi no
  489. 11:18 PM <tushara> i told my answer
  490. 11:18 PM <ark101> no way
  491. 11:18 PM <abhiramr> why would anyone want an algo with n^3 complexity
  492. 11:18 PM <karthic_> the asnwer is if there is better way its not good to design algorithm of theta of n cude complexity
  493. 11:18 PM <tushara> this guy posted the question again n again
  494. 11:18 PM <palike1> nope.. not me..
  495. 11:19 PM <fierch> yeah, that's what
  496. 11:19 PM <Abhishek_Jain> oh i thgt he told to try ..oops my fault
  497. 11:19 PM <fierch> if there's no better way, you will have to design n^3 complexity algos
  498. 11:19 PM <karthic_> try if you can reduce the time complexity to 'logN'
  499. 11:19 PM <karthic_> if not possible then ti 'NlogN'
  500. 11:19 PM <karthic_> if not possible then atleast to 'N'
  501. 11:20 PM <fierch> then n^2
  502. 11:20 PM <karthic_> if not then atleast to 'N square'
  503. 11:20 PM <fierch> then n^3
  504. 11:20 PM <Vaishnavi> If none n^3
  505. 11:20 PM <karthic_> sry 'NlogN' should come after 'N'
  506. 11:20 PM <karthic_> yes
  507. 11:20 PM <fierch> how about 2^n?
  508. 11:20 PM <fierch> 2^n algos
  509. 11:20 PM <palike1> exponential
  510. 11:20 PM <karthic_> if not anything you have to go for something that works atleast
  511. 11:21 PM <karthic_> at the end go for exponential algos
  512. 11:21 PM <Vaishnavi> N^3 is betta than 2^n
  513. 11:21 PM <karthic_> here is the question
  514. 11:21 PM <palike1> true
  515. 11:21 PM <palike1> @vaishnavi2
  516. 11:21 PM <fierch> vaishnavi, how?
  517. 11:21 PM <Abhishek_Jain> yea how?
  518. 11:21 PM <karthic_> n^3 is better than 2^n
  519. 11:21 PM <tushara> 2^n is worst!! for large inputs
  520. 11:21 PM <Abhishek_Jain> check for 2^3 and 3^3
  521. 11:21 PM <palike1> 2^n is exponential.. :P
  522. 11:21 PM <karthic_> try for larger inputs
  523. 11:22 PM <palike1> the graph
  524. 11:22 PM <Vaishnavi> Subs n compare
  525. 11:22 PM <fierch> okay, yeah.
  526. 11:22 PM <fierch> for large inputs.
  527. 11:22 PM <Abhishek_Jain> ohk :)
  528. 11:22 PM <fierch> okay, exponential is the least preferred
  529. 11:22 PM <Vaishnavi> Fac actually
  530. 11:23 PM <abhiramr> Vaishnavi: Just try on your calci
  531. 11:23 PM <karthic_> here is the question for tomorrow
  532. 11:23 PM <abhiramr> 2^100 and 100^3
  533. 11:23 PM <abhiramr> you'll know the answer :)
  534. 11:23 PM <Vaishnavi> Yea it doesn't go tat way
  535. 11:23 PM <palike1> The Graph
  536. 11:24 PM <palike1> *graphs
  537. 11:24 PM <palike1> compare them
  538. 11:24 PM <fierch> karthic go ahead
  539. 11:24 PM <Vaishnavi> Graphs
  540. 11:24 PM <Vaishnavi> My bad
  541. 11:24 PM <palike1> and wolla! u have the comparison..
  542. 11:24 PM <karthic_> "given the time complexity you guys now which algorithm is better .....But given the algorithm , how do you find its time complexity ??"
  543. 11:24 PM <Vaishnavi> Hey wait
  544. 11:24 PM <karthic_> thats the question
  545. 11:24 PM <tushara> okay
  546. 11:25 PM <Abhishek_Jain> ok
  547. 11:25 PM <palike1> cool!
  548. 11:25 PM — abhiramr is up for the challenge
  549. 11:25 PM — tushara loves this ;)
  550. 11:25 PM — Abhishek_Jain thinks he know the answer
  551. 11:25 PM <karthic_> "given the time complexity you guys now which algorithm is better .....But given the algorithm , how do you find its time complexity ??" and you should find the time complexities for bubble sort and insertion sort and please watch the 4th video
  552. 11:26 PM <palike1> cool! :)
  553. 11:26 PM <tushara> okay....sure
  554. 11:26 PM <karthic_> we shall start implement bubble sort using python tomorrow
  555. 11:26 PM — fierch wondering when will we start implementing algos on python
  556. 11:26 PM <palike1> awesome... :D
  557. 11:26 PM <fierch> oh, good timing
  558. 11:26 PM <karthic_> u guys got the question right ?
  559. 11:27 PM <Abhishek_Jain> yea we got it
  560. 11:27 PM <tushara> see you all tomorrow @10 here!! (with the answers and some race ;) :p)
  561. 11:27 PM <karthic_> any questions abt the question ?? :D
  562. 11:27 PM <fierch> lol
  563. 11:27 PM <Abhishek_Jain> lol no
  564. 11:27 PM <tushara> no
  565. 11:27 PM <palike1> nope
  566. 11:27 PM <karthic_> how was the discussion today ?? satisfactory ?
  567. 11:28 PM <Vaishnavi> More than that. :D
  568. 11:28 PM <palike1> really good... frm what i followed...
  569. 11:29 PM <palike1> :)
  570. 11:29 PM <abhiramr> Good!
  571. 11:29 PM <palike1> *where
  572. 11:29 PM <karthic_> i repeat the question , "given the time complexity its easy to say which algorithm is the better one , but given an algorithm how do you find its time complexity ?? go through the algorithms for bubble sort and insertion sort and find their time complexities "
  573. 11:29 PM <abhiramr> Just give an attendance like this and we'll end the session
  574. 11:29 PM <abhiramr> Abhiram R
  575. 11:30 PM <karthic_> karthic rao
  576. 11:30 PM <palike1> Chaitanya.S.A
  577. 11:30 PM <Vaishnavi> Vaishnavi Rao
  578. 11:30 PM <fierch> James Bond
  579. 11:30 PM <palike1> lol!
  580. 11:30 PM <karthic_> ok , abhiram , make a log
  581. 11:30 PM <Abhishek_Jain> Abhishek Jain
  582. 11:30 PM <ark101> Arpitha Kashyap
  583. 11:31 PM <abhiramr> < ---- SESSION 3 END ---->
Advertisement
Add Comment
Please, Sign In to add comment