0 and Infinity!!! by gche043 (gche043) on August 9, 2003, 5:37 pm |
For input file in question 1... how would i be able to tell between input for infinity(no arcs) and arcs with weight 0? or do we not have any arcs with weight zero? |
Re: 0 and Infinity!!! by christian (celv004) on August 9, 2003, 7:22 pm | ||
gche043 wrote:
Yes I think we can assume that.... |
handling 1x1 matrices in Q1 by frazzle (dazh001) on August 11, 2003, 1:01 am |
Do you know whether we will have to handle 1x1 matrices in q1 as it would be a bit tricky distinguishing between order and the actual matrix itself |
all pairs distance by pump (jbai034) on August 10, 2003, 6:33 pm |
in graph 2: |
Problem about ASCII...... by zbao002 (zbao002) on August 10, 2003, 4:51 pm |
When I copy the content of a txt file to another file, the output file is exactly same as the input file, that's fine... |
by fever691 (yyan050) on August 10, 2003, 5:04 pm |
have you tried reading your 105 notes? or try the api or other previous post |
by zbao002 (zbao002) on August 10, 2003, 5:14 pm | ||
fever691 wrote:
My stage I compsci courses were taken in Canterbury Uni, so...little bit different between Akl and Chch... Any hints? Thanks... |
by fever691 (yyan050) on August 10, 2003, 5:30 pm | ||
zbao002 wrote:
the 101 and 105 notes are on the web, check under the courses page or read Mark's class files, big hint there...or try the api...but yea I suggest the 105 notes :) |
Input for Q1? by bugFull (myon002) on August 9, 2003, 4:41 pm |
I
am still confused about the input for Q1, does the user pass in a text
file containing the weighted matrix for you to traverse through? |
by knack (pduf006) on August 9, 2003, 5:17 pm |
your program takes a filename as a parameter. in other words, args[0] will contain the name of the file which contains the matrices. |
path of least uncertainty by dyak001 (dyak001) on August 8, 2003, 6:29 pm |
question:if
I use Marks definition for least cost. Then the cost is always the
amount I can extract from the situation no matter whether or not there
is a the cost. So how do I know before I get whether or not I can
afford it?I don't, so I may not get there, right. |
Is Q1 to be tested with Graphs class files in same dir? by Maximum Redg (rred015) on August 9, 2003, 6:24 pm |
Hey all,,, |
by Maximum Redg (rred015) on August 9, 2003, 8:07 pm |
[quote:0081f57432] |
Running Q2 Soln with Q1 Code by The Fri (gmar086) on August 7, 2003, 10:15 pm |
Does
this work for anyone? my solution to Q2 doesnt produce the desired
output using the floyds algorithm I created using Q1, it produces a new
matrix but one of the weights arent correct. |
by fever691 (yyan050) on August 8, 2003, 1:12 pm |
But
the Floyd's algorithm finds the least cost from getting one node to
another node. But the Dijkstra's algorithm finds the shortest path from
a starting node to every other node. |
by jwel027 (jwel027) on August 10, 2003, 10:11 pm |
Floyds Algorithm does handle weights with negative arcs, the question is should we be examining the output from floyds algorithm under the conditions imposed by Dijkstra's? (did I spell that correctly?) |
dijkstra's algorithm question by fever691 (yyan050) on August 8, 2003, 6:55 pm |
I just want to make sure I heard right, but did Mark say that Dijkstra's algorithm can start at any node, and that even with negative weights Dijkstra's algorithm can still "sometimes" find the correct answer? |
I think so by jsun027 (jsun027) on August 8, 2003, 8:53 pm |
[I think] |
Re: dijkstra's algorithm question by recah (ichi007) on August 9, 2003, 11:23 am | ||
fever691 wrote:
yep u heard him right! Dijkstra's algorithm can sometimes find the correct path depending on the graph u have. |
Q about Part2 by mong (zmen001) on August 8, 2003, 7:01 pm |
just want to know exactly wht format for part 2.. |
the smallest example U can find!Q2 by jkim126 (jkim126) on August 6, 2003, 5:30 pm |
the smallest example U can find means what? |
A1 txt file 2 adjacent matrix by skyblue (zwan033) on August 9, 2003, 3:43 pm |
[size=18:8472471f4a] [color=red:8472471f4a] |
by knack (pduf006) on August 9, 2003, 5:19 pm |
[color=red:27e23f535a] [size=24:27e23f535a] use mike's graph files[/color:27e23f535a] [/size:27e23f535a] |
by jimmy (syu034) on August 10, 2003, 1:47 pm | ||
knack wrote:
i am confused too |
by david (jyue005) on August 10, 2003, 3:09 pm |
In Mike's graph: |
by fever691 (yyan050) on August 10, 2003, 4:37 pm |
you don't "have to" use Mark's graph classes. like he said, in one of his post. You can use his graph classes or jst simply do it yourself...if you've forgotten how to use arrays, go check out the 101 notes or the 105 notes for last semester |
Re: A1 txt file 2 adjacent matrix by Bigbear (hyan052) on August 11, 2003, 2:42 pm | ||
skyblue wrote:
Read the 105 note, I/O sections then I think u will get some ideas. BTW, I didn't use the Java-Graph package to work out quesiton 1, but I think I got the right output |
by cko011 (cko011) on August 11, 2003, 6:21 pm |
man...we've really did learnt nothing on the Graph writing with java in lecture, how can guys generate code so fast? repeat? |
but how 2 get WAM? by skyblue (zwan033) on August 12, 2003, 11:56 am | ||
david wrote:
[color=blue:51c1229a45] I mean i want the weight adjaceny matrix,i can get the connective adjaceny matrix by using mike's GraphAdjMatrix class. |
Re: but how 2 get WAM? by hrh (rhua009) on August 12, 2003, 12:26 pm |
[/quote] |
by cko011 (cko011) on August 12, 2003, 1:15 pm |
anyone knows whetehr we can submit more than one java files or not? or just only the floyd.java? what if I have some abstract class file work with it? |
red-black tree by dyak001 (dyak001) on August 8, 2003, 2:59 pm |
is that hyphenated or not?? |
Can anyone help me for the Q1 by sireesha (svar015) on August 9, 2003, 2:02 pm |
Can anyone heilp me for the Q1 |
Re: Can anyone help me for the Q1 by christian (celv004) on August 9, 2003, 7:24 pm | ||
sireesha wrote:
You don't need the graph files in from Mark's website. You should just apply Floyd's algorithm to the text you have retrieved. |
by Jono (jteu004) on July 31, 2003, 2:51 pm |
If you view it as we did it in tutorials, time is incremented in two places (for DFS): |
dfs: when to time++ ? by knack (pduf006) on July 30, 2003, 12:40 am |
hi all, this is a question about DFS (and BFS for that matter): |
by asheltie (ajoh064) on July 30, 2003, 12:13 pm |
up to you i guess, |
last reply by dyak001 (dyak001) on August 8, 2003, 3:01 pm |
I meant preserve not maintain sorry, sillt no luck.. |
dijkstra and 24 hours by dyak001 (dyak001) on August 8, 2003, 9:51 pm |
well I was trying to find out how long it would take for the earth to rotate |
by asheltie (ajoh064) on August 9, 2003, 2:06 pm |
it's a shame you're not edited by the moderator. |
by gche043 (gche043) on August 9, 2003, 4:05 pm |
haha... funny |
$0.02 by aaa (aazz001) on August 11, 2003, 10:35 am |
using
dij's algo to calculate the minimum distance between humans, with the
edges representing perhaps knowledge of the name the other humans "in
the matrix" (!?) would require a matrix with an order of the # of ppl
in the world.. |
TO those who've finished our 1st ass by jsun027 (jsun027) on August 8, 2003, 9:43 pm |
Can any of you provide some inputs and their outputs, just to check my code works. |
tickets by dyak001 (dyak001) on August 8, 2003, 8:52 pm |
you're too late hun the tickets are now on their way, what a waiste. |
by jsun027 (jsun027) on August 8, 2003, 9:24 pm |
What's this about? |
by knack (pduf006) on August 6, 2003, 12:39 pm |
yeah.. in a weighted digraph's matrix, any zero not on the diagonal means there is no arc there - so the weight is +inf |
Q1 sample output by fever691 (yyan050) on August 6, 2003, 11:28 am |
Digraph 3: all-pairs matrix follows |
by fever691 (yyan050) on August 7, 2003, 12:01 pm | ||
cko011 wrote:
this is the sample output: Digraph 1: negative weight cycle detected, aborting Digraph 2: all-pairs matrix follows 0 3 4 1 0 3 4 4 0 Digraph 3: all-pairs matrix follows 0 1 +inf 0 you can find it in Mark's website in his "Handout" section for us |
by cko011 (cko011) on August 7, 2003, 12:00 pm |
do u know which file is the sample output of Q1? |
computer..lab by dyak001 (dyak001) on August 6, 2003, 6:38 pm |
is anyone able to use the java kit in the lab or has access to the network drive??/home directory// |
Q2 by fshe010 (fshe010) on August 6, 2003, 10:58 am |
so anyone know what's the standard output file of Q2? |
by fever691 (yyan050) on August 7, 2003, 1:36 pm |
:P |
by david (jyue005) on August 7, 2003, 1:08 pm |
so, if I am lucky enough, then I could just guess one... |
by knack (pduf006) on August 7, 2003, 1:20 pm |
haha yeah i spose, if you're that desperate |
by asheltie (ajoh064) on August 8, 2003, 10:21 am |
ohhh, |
by knack (pduf006) on August 8, 2003, 9:06 am |
heh yeah i was real tired when i posted that |
by david (jyue005) on August 7, 2003, 1:32 pm | ||||
fever691 wrote:
I think I've already got the answer. I'm just kidding. :P |
by fever691 (yyan050) on August 7, 2003, 1:26 pm | ||
david wrote:
go to tutorials...might help...cos I jst clicked jst then too :D |
by david (jyue005) on August 7, 2003, 1:24 pm |
I just feel a little bit unfair~~ |
by fshe010 (fshe010) on August 6, 2003, 12:45 pm |
ok.. i see. |
by knack (pduf006) on August 6, 2003, 12:41 pm |
yeap. just a single weighted digraph's matrix - eg. |
by knack (pduf006) on August 7, 2003, 12:59 pm |
no, just give the digraph which makes it not work |
by david (jyue005) on August 7, 2003, 12:52 pm |
For Q2, do we need to explain why Dijkstra's algorithm does not work? |
by The Fri (gmar086) on August 6, 2003, 10:31 pm |
I think the 0 refers to the next matrix, but since its of size 0, there is none |
by knack (pduf006) on August 7, 2003, 5:50 am |
yeah, the zero just marks the end of the file |
by jsun027 (jsun027) on August 7, 2003, 8:23 pm |
For Q2. |
by jsun027 (jsun027) on August 7, 2003, 8:58 pm |
[quote:8929afdf06] |
by knack (pduf006) on August 7, 2003, 9:04 pm |
i
know. but that's "standard weighted adjancy matrix" format. its pretty
stupid i guess, but i dont much care anymore since i've submitted my
assignment :P |
by jsun027 (jsun027) on August 7, 2003, 9:33 pm |
come on mate! show some commitment! you've gotta make it perfect, simply because u want to, don't you? |
ic red black?distance matrix by dyak001 (dyak001) on August 5, 2003, 8:02 pm |
does it make any differrence if there are two paths with the same total weights? |
by knack (pduf006) on August 5, 2003, 10:53 pm |
when? what context? |
Ass01 Q01 negative weight cycle by jsun027 (jsun027) on August 8, 2003, 12:11 pm |
When we are detecting negative weighted cycle, which one do we play around with, the weighted adjacency matrix or the shortest distance matrix that would've been produced by our Floyd algorithm....or something else. |
by asheltie (ajoh064) on August 8, 2003, 1:05 pm |
at a guess....if you wait until you have the shortest distance matrix, |
by jwel027 (jwel027) on August 8, 2003, 2:07 pm |
can you ever get a non-zero entry on the diagonal? |
by fever691 (yyan050) on August 8, 2003, 1:09 pm |
I dunno if this helps but remember its a negative cycle if the total weight along the cycle is less than zero... |
by asheltie (ajoh064) on August 8, 2003, 2:41 pm |
yesss, |
by jwel027 (jwel027) on August 8, 2003, 4:20 pm |
sorry I asked. |
by jsun027 (jsun027) on August 8, 2003, 7:53 pm |
knack pduf006 <--- |
by knack (pduf006) on August 8, 2003, 8:22 pm |
i think enough hints have been dropped in this thread already.. read a few posts up |
by fez (jbro179) on August 9, 2003, 11:02 am |
[quote:7ead10fc26] yesss, |
by DannoNZ (dhaw022) on August 9, 2003, 4:06 pm | ||
fez wrote:
How does that work? I thought a diagonal value meant the node had a loop onto itself, is that what the question means (q1) when it says "your program should be able to handle digraphs with and arcs" ? |
by gche043 (gche043) on August 11, 2003, 11:17 am |
dunno if this is gonna help but try running a matrix with negative weight cycle w\o checking it... look at the result and see if you can spot anything unusual |
by jimmy (syu034) on August 12, 2003, 10:24 am | ||
asheltie wrote:
how to detect the negative-weight cycle,(a cycle with total negative weight)?we need check triangles for each matrix .... plz help |
Q1 Timing Code by The Fri (gmar086) on August 7, 2003, 8:27 pm |
Could
someone please post the code to measure the time it takes for a section
of code to run? I cant remember since I did 105 like 2 years ago. |
by drflower (dflo006) on August 7, 2003, 8:34 pm |
Very simple... |
red and black treee by dyak001 (dyak001) on August 7, 2003, 8:17 pm |
did
I happen to mention how pleasing it was to see Mark in such fine
spirits today during the lecture after tuesday. Obviously having a
better day! |
by fshe010 (fshe010) on August 6, 2003, 10:56 am |
so what u mean is in the input file you will use 0 to replace all infinite distance..is it? |
Important clarification for assignment 1 Q1 by Mark Wilson (mwil211) on August 5, 2003, 9:34 am |
For
Q1 (Floyd), we need to clarify the input format (weighted adjacency
matrix). It is difficult to represent infinity, so I am using 0 in the
(i,j) position to mean there is no arc from node i to node j. You can
also interpret it to mean that there is an arc of weight zero, BUT this
is not how I want to do it. That would give incorrect answers. |
by asheltie (ajoh064) on August 5, 2003, 4:44 pm |
[quote:317d277d6f]
I know, how can we possibly move from any relative position where there
is only one path with less than a cost than not moving doesn't make
sense!!The cost of not implementing the move becomes infinitely large
so the distance from a node to itself becomes nonsensical in terms of
... big O notation ... |
by fshe010 (fshe010) on August 6, 2003, 10:51 am |
i thinks Q2 which ask us to find the smallest example of digraph that show Dij algo doesnot work if negative weight arcs are allowed. |
non negative path weights infinite distance matrixes and sus by dyak001 (dyak001) on August 5, 2003, 4:25 pm |
does anyone know why dijkstra only likes non-negative path weights. Mathematically it does seem reasonable to have non-negative path weights and negative path weights for a MST, however what interpretation do we apply to graph G with n nodes where n is a finite non emty set(i.e. n >0) and a set of edges E with a finite set which is possibly empty, however in the case of a minimumset of a single node and a single path with a negative number, why does Dijkstra not indulge(in negative values)what interpretation do we apply to a minimum spanning tree with a negative minimum weight? if the cost is less that zero do we get an infinite loop? or in the case of there being a substantial tree do we get subtrees(subsystems) with weak components and ambiguous meanings for string selections. I don't see the difference for acceptance states and start states with no closure(not really sure about closure when acceptance states and start states are the same??no real possibility for subsets I guess?? ) it does indeed seem ambiguous!! I know, how can we possibly move from any relative position where there is only one path with less than a cost than not moving doesn't make sense!!The cost of not implementing the move becomes infinitely large so the distance from a node to itself becomes nonsensical in terms of ... big O notation ... |
by knack (pduf006) on August 5, 2003, 10:46 pm |
well, first of all dyak001.. a few newline characters never hurt anyone :P makes your post so much easier to read |
by pump (jbai034) on August 7, 2003, 3:05 pm | ||
sireesha wrote:
i just believe it should be a negative weighted cycle with fewest nodes/edges. |
by sireesha (svar015) on August 7, 2003, 2:57 pm |
The question is saying that we should not have any -ve weight cycles |
by pump (jbai034) on August 7, 2003, 1:57 pm |
"should have no negative weighted cycle" |
by knack (pduf006) on August 7, 2003, 1:01 pm |
"no negative weight cycles" means the digraph should have "no negative weight cycles".. |
by ppflare (jlee210) on August 7, 2003, 2:04 pm |
-___- |
by pump (jbai034) on August 7, 2003, 2:11 pm |
go to check your assignment sheet |
by knack (pduf006) on August 7, 2003, 12:06 pm |
i will try to un-confusion you :) |
by The Fri (gmar086) on August 7, 2003, 12:27 pm |
no negative weight cycles you say? |
can anyone help me regarding this Q2 by sireesha (svar015) on August 7, 2003, 11:36 am |
can anyone help me regarding this Q2 |
by sireesha (svar015) on August 7, 2003, 4:13 pm |
but the Question is saying we should n't have any -ve weighted cycle |
by knack (pduf006) on August 6, 2003, 12:37 pm |
yeah okay, i don't see why not.. |
by fever691 (yyan050) on August 6, 2003, 9:09 am | ||
knack wrote:
so i guess that means that we can submit more than the three files that were stated in the assignment handout sheet then... |
by knack (pduf006) on August 6, 2003, 9:42 am |
hmm.. good point. i suppose maybe its assumed that the markers have Mark's files.. i doubt they'd make us upload them if we hadn't changed them.. |
by knack (pduf006) on August 5, 2003, 10:08 am |
well
i managed to generate some random weighted graphs - each cell has
probability 50% for a 0, 50% for a random weight 0-50. so here's some
benchmarks for q1 :) |
by asheltie (ajoh064) on August 5, 2003, 10:06 am |
I think Questiion 1 is not going to be any different than any one else's implementation of Floyds Algo. |
by fever691 (yyan050) on August 6, 2003, 9:57 am |
Knack would you be able to provide some of those "random matrix" that you got, for us to use? |
by knack (pduf006) on August 5, 2003, 9:35 am |
re: benchmarks |
by fever691 (yyan050) on August 5, 2003, 2:46 pm |
I was just wondering whether anyone's used Mark's graph class files...... |
by asheltie (ajoh064) on August 5, 2003, 10:34 am |
nice, |
by knack (pduf006) on August 5, 2003, 7:14 pm |
it *doesnt* include printouts :P [edit] remember Floyd's algo is O(n^3) [/edit] |
two questions by asheltie (ajoh064) on August 4, 2003, 1:31 pm |
Mark? |
by ppflare (jlee210) on August 7, 2003, 2:06 pm |
didn't he say that we could use the maximum weight in the graph + 1 to indicate infinity? |
by knack (pduf006) on August 7, 2003, 12:07 pm |
smallest value of numberofnodes+numberofedges |
Re: Q2 input format by christian (celv004) on August 7, 2003, 11:50 am | ||
chsi021 wrote:
I wonder about this too....if we use 0, then what if one of the arcs have cost 0 - will that be interpreted as infinity then? Christian |
by fever691 (yyan050) on August 7, 2003, 12:04 pm |
this might be a dumb question, but I gotta ask :P |
by fever691 (yyan050) on August 7, 2003, 2:10 pm | ||
ppflare wrote:
isn't that for question 1? |
Q2 input format by chsi021 (chsi021) on August 6, 2003, 8:50 pm |
I am aware that Mark has said he would use "0" instead of "+inf" for Q1 as the input for weighted adjecency matrix. |
by yren004 (yren004) on August 6, 2003, 8:53 pm |
i've no idea either.. |
by yren004 (yren004) on August 7, 2003, 3:39 pm |
what u talking abt? |
by asheltie (ajoh064) on August 7, 2003, 4:00 pm |
so much confusion. |
Assig Q3--sample answer? by david (jyue005) on August 3, 2003, 2:10 pm |
In the sample answer: |
by msir003 (msir003) on August 3, 2003, 3:16 pm |
it mean the step that u take... "before #1" would mean : wots the 1st thing that u visit... |
by knack (pduf006) on August 3, 2003, 3:38 pm |
# stands for "number" |
How fast should Q1 be? by drflower (dflo006) on August 7, 2003, 3:10 pm |
I was just playing around with some matrices to test how long my Floyds algo took with large graphs. |
by asheltie (ajoh064) on August 7, 2003, 3:30 pm |
i don't have my code here today, but will let you know.......they should all be similar if we're using primitives |
by knack (pduf006) on August 7, 2003, 7:14 pm |
mine was faster :) |
by drflower (dflo006) on August 7, 2003, 8:32 pm |
Thanks for that... |
by asheltie (ajoh064) on August 8, 2003, 3:21 pm |
finally, some times |
-ve distances by dyak001 (dyak001) on August 6, 2003, 7:34 pm |
well
I think that -ve means that the intrinsic nature of Dijkstra doesn't
allow unfinity to be included. If the possibility of the start states
is infinite we could end up anywhere(infinite regression would take
place), something which a computer might not find at all appealing,
since each state can only be represented by 0's and 1's, this would
severely restrict computational capacity for even the simplist of
problems. By only allowing positive weights for a non-deterministic or
deterministic finite automata we simplify the real world problems and
decision making in computational mathematics. (32, 64 or 128 bit
capacities). |
negative arcs in q2 by msir003 (msir003) on August 5, 2003, 9:40 pm |
Is -ve arc an arc that goes in the opposite direction to a directed arc with a positive weight? eg lets say that weight from node(0)-------->node(1) is 2. Would the -ve arc be from node1 back to node0 with the weight of -2??? thanx |
by knack (pduf006) on August 5, 2003, 10:52 pm |
no (i think this is what you mean): |
by knack (pduf006) on August 6, 2003, 8:51 pm |
come on, quit it. it stopped being funny last semester. seriously. |
by jsun027 (jsun027) on August 7, 2003, 7:06 pm |
[quote:0f0801a548] dyak001 |
by knack (pduf006) on August 7, 2003, 7:11 pm |
he's just trying to confuse you - ignore it :P |
by jsun027 (jsun027) on August 7, 2003, 8:45 pm |
For Q2. |
by knack (pduf006) on August 7, 2003, 8:52 pm |
the lowest numbered one |
tuesday lecture by dyak001 (dyak001) on August 6, 2003, 6:55 pm |
does
anyone have notes for the last part of tuesdays lecture, I wasn't quite
able to here what Mark was saying, but I was quite inspired by his
tearful approach to lecturing, well I do hoope it was his passion and
not some personal issues he's having that would be quite disturbing and
defiantely inappropriate!! |
by knack (pduf006) on August 7, 2003, 1:00 pm |
well it depends on when the while loop terminates i guess |
Q1 question by fever691 (yyan050) on August 7, 2003, 12:11 pm |
I'm not too sure about how to check for a "cycle of negative total weight" |
by knack (pduf006) on August 7, 2003, 1:34 pm |
yep, its a negative cycle if the total weight along the cycle is less than zero |
by knack (pduf006) on August 7, 2003, 12:16 pm |
well.. i don't know whether i can answer your first question :\ |
by fever691 (yyan050) on August 7, 2003, 1:07 pm |
yay!!! after a "long long" time I jst worked out my first question...yea I feel stupid now, cos it's easy! :P |
by fever691 (yyan050) on August 7, 2003, 1:23 pm |
what if you have a matrix the is: |
by fever691 (yyan050) on August 7, 2003, 12:32 pm | ||
knack wrote:
heheh had to try :D but a question if for loop for loop for loop means O(n^3) then what happens if while loop for loop for loop for loop ? or say within a while loop call another method, where that method contains other for loops like the O(n^3) ?? |
by shurik (apry004) on August 7, 2003, 7:16 pm |
The sum of three arcs is -ve. therefore its going to b ive cycle |
by Jono (jteu004) on August 4, 2003, 10:31 am |
I think the confusion is between weighted and unweighted graphs. |
by Mark Wilson (mwil211) on August 6, 2003, 3:23 pm |
As
I said in lecture Tuesday, for Q1 we will use 0 to mean infinity (no
arc) in the off-diagonal positions. In your program you will need to
replace these 0's with "infinity". To do this, it is probably best to
compute M = sum of all positive arc weights, and use M+1 for infinity. |
Ass1 Q2 by msir003 (msir003) on August 3, 2003, 3:14 pm |
hey, how the hell can u have a -ve weight btwn 2 nodes?? isnt the smallest weight 0, wen there are no arcs connecting them?? TUTORS/LECTURES HELP US!!!!!!! :) :) :) |
by knack (pduf006) on August 3, 2003, 3:41 pm |
weight 0 means it costs nothing to get from A to B |
take a deep breath by asheltie (ajoh064) on August 2, 2003, 3:13 pm |
wow, |
by knack (pduf006) on August 2, 2003, 4:51 pm |
[quote:7afbc44c75] alot of people mispelled Ditjskra's name: |
by Bigbear (hyan052) on August 6, 2003, 1:37 pm | ||
fshe010 wrote:
I didn't visit all the nodes too |
by fshe010 (fshe010) on August 4, 2003, 12:13 pm |
we can't visit all nodes if we start from 0 node, so... |
by knack (pduf006) on August 6, 2003, 12:33 pm |
no, i think that would be cheating. |
by fshe010 (fshe010) on August 6, 2003, 12:15 pm |
could u tell me how many call # number of q3 |
by knack (pduf006) on August 6, 2003, 2:24 pm |
..no i can't.. |
by knack (pduf006) on August 5, 2003, 9:37 am |
so then when you can't go any further, start again from the next unprocessed node.. just like the algo in the book |
by fshe010 (fshe010) on August 6, 2003, 12:48 pm |
^-^ ok.. |
Q3 by fshe010 (fshe010) on August 3, 2003, 2:39 pm |
what's meaning of the first requirment of Q3 which is In every for loop , process nodes in increasing order of numerical label. |
by knack (pduf006) on August 3, 2003, 3:42 pm |
er.. how simple do you want it? first process node #1, then node #2, then node #3 etc etc etc :P |
by david (jyue005) on August 14, 2003, 1:01 pm |
... |
by Jo (ldin005) on August 14, 2003, 7:09 pm |
i think the point is he said "Immediately before.." so everything listed after this line is the information right before doing the DFSv, then when the last node is finished there'll be no more DFSv to do, therefore the very last node is not listed. |
by Jono (jteu004) on August 4, 2003, 10:39 am |
Umm..
you can discuss how the algorithms work and how to use them, but please
be careful to leave it at that. You should not discuss anything
specific to the assignment (eg. which nodes you traversed in which
order etc). |
by jimmy (syu034) on August 4, 2003, 9:02 am | ||
knack wrote:
do we need follow the number order 1,2,3,4,5 respectivity?or 5,1,2,3if 5 is root. |
by knack (pduf006) on August 1, 2003, 3:10 pm |
why? |
by knack (pduf006) on August 1, 2003, 2:13 pm |
i *think* we have to start at node 0 |
Q3 by msir003 (msir003) on August 1, 2003, 9:23 am |
hey, in the "rules" for q3 it says that we have to go thru nodes in ascending order. does that mean we have to start with node 0? or can we choose any root, then go as far as we can and then go in ascending order???? (cuz if u start at node 0 there is more than 1 connected tree), thanx |
by knack (pduf006) on August 2, 2003, 12:43 pm |
well yeah, but where does it say you have to get one connected tree? |
by asheltie (ajoh064) on August 1, 2003, 10:28 am |
thanx, |
by shurik (apry004) on August 1, 2003, 2:23 pm |
nope i think u need to start at root 6 |
by shurik (apry004) on August 1, 2003, 7:57 pm |
coz there is no routes that go into 6 |
Re: Q3 by jimmy (syu034) on August 3, 2003, 2:54 am | ||
msir003 wrote:
what is the meaning of numerial order? |
by knack (pduf006) on August 3, 2003, 4:19 am |
it means 1 then 2 then 3 then 4 etc |
by fez (jbro179) on August 3, 2003, 1:14 pm |
crap I did it out of numerical order and jumped from 1 to 3 |
by knack (pduf006) on August 3, 2003, 3:43 pm |
start at 0, then if you run out of nodes to process and there are sill some left, start again at the lowest numbered unprocessed node |
by jsun027 (jsun027) on August 8, 2003, 8:49 am |
[quote:33472e640e] |
by knack (pduf006) on August 8, 2003, 9:02 am |
i think we assume that the only arcs of zero weight will be on the diagonal. all the other zeros represent infinity. |
Assignment 1 Q1 by Bigbear (hyan052) on August 7, 2003, 11:45 pm |
In Q1, does our program only need to handle one weight adjacency matrix in the input file? Or we need to handle many matrices at one time? |
by jsun027 (jsun027) on August 8, 2003, 8:33 am |
Our program should be able to take multiple weighted adjacency matrices in the input file. We can tell that from the input and output example in mark's handout directory. |
by shurik (apry004) on August 8, 2003, 2:50 pm | ||
knack wrote:
So u add all numbers in the matrix and add1 then u replace the sum with every 0 except ones at the diagonal |
by asheltie (ajoh064) on August 8, 2003, 3:03 pm |
YES |
by shurik (apry004) on August 8, 2003, 3:16 pm |
run through Floyd's algorithm and it would work |
by jimmy (syu034) on August 8, 2003, 7:21 pm | ||
shurik wrote:
hi,guys,how to write the java program?fro Q1,anyone can give me a hint |
by fez (jbro179) on August 9, 2003, 11:12 am |
To get you started you need to get the matrix out of the txt file, Marks handouts dir has some java files that can help you there (not that I used them or anything) |
by jimmy (syu034) on August 9, 2003, 12:23 pm | ||
fez wrote:
on the website? |
by shurik (apry004) on August 9, 2003, 12:29 pm | ||||
jimmy wrote:
yea at his website "my handouts" |
by jimmy (syu034) on August 9, 2003, 12:53 pm | ||||||
shurik wrote:
there are a lot of sources.even i don't know which will be useful ? anyway i have found it,thanks a lot! |
by Bigbear (hyan052) on August 9, 2003, 11:19 pm | ||||||||
jimmy wrote:
I didn't use the package of java-graph Mark provided, but I still got the correct output. I finished the code, but I still get no idea what's going on in Q2.........:( |
by jimmy (syu034) on August 10, 2003, 1:46 pm | ||||||||||
Bigbear wrote:
how to do that?give me some hints? |
by fez (jbro179) on August 10, 2003, 9:27 pm |
[quote:96a3482b60] I didn't use the package of java-graph Mark provided, but I still got the correct output. |
by jwel027 (jwel027) on August 10, 2003, 10:16 pm |
just means it has to be right. I hope the tutor that gave me those answers wasn't lying. |
by Jono (jteu004) on August 11, 2003, 2:37 pm |
Yes,
n = nodes and e = edges. You are looking for the smallest graph (in
terms of both nodes and edges) for which Dijkstra's gives an incorrect
answer. This graph may or may not have a cycle. |
by jsun027 (jsun027) on August 12, 2003, 9:55 pm |
can I have arcs that are 0 weight for Q2? |
Assignment01 Q2 by jsun027 (jsun027) on August 3, 2003, 11:43 am |
Anyone knows why Dijkstra's algorithm doesn't work if negative weight arcs are allowed, please? |
by knack (pduf006) on August 3, 2003, 3:50 pm |
i don't think i can tell you that.. it's sorta the assignment question :P |
Answers to various questions on Ass 1 by Mark Wilson (mwil211) on August 6, 2003, 3:19 pm |
I hope the following answers all the common questions: |
is it the point?(Q2) by pump (jbai034) on August 6, 2003, 8:15 pm |
Greedy Algorithms and Negative Costs |
algorithms by dyak001 (dyak001) on August 1, 2003, 3:49 pm |
o
hi I've never done this before so I hope everyone understands what my
question is, umm well for the assignment questions we have to use
Dijkstras and Floyds algorithm to assess the minimum weight path for
some grapg G. Oh I hope I spelled Dijkstra and Floyd correctly, anyway
some graph G with n nodes and e edges, now for one of them I'm not
supposed to use negative arc weights(so I won't...ha) for Dijkstras
algorithm(i think), now for Floyds algorithm it doesn't matter(so I
will ... ha) if we use negative weights even for a minimum graph with n
nodes, where n is not an empty set and e edges where e can be an empty
set for the minimum node vertice(s) problem where we get a total path
sum less than zero, for some reason which I'm not aware of at the
moment but Dijkstra does not like this(very Freudian i think) and
Floyds not so fussed either way. |
by asheltie (ajoh064) on August 1, 2003, 4:19 pm |
if you buy the 220 notes you'll find them there |
by knack (pduf006) on August 1, 2003, 4:21 pm |
they're both in the coursebook, read ahead a little.. |
Question for Q1 Ass1 by inkeol83 (ikim008) on August 11, 2003, 6:40 pm |
if you see file from marks handout page. |
by knack (pduf006) on August 12, 2003, 10:07 am |
the 0 is just an end of file marker, not a 0x0 matrix. |
Cant I submit ass without NetAccount? by inkeol83 (ikim008) on August 11, 2003, 7:42 pm |
Is it impossible to submit my assignmnet without NetAccount? |
Re: Cant I submit ass without NetAccount? by jimmy (syu034) on August 12, 2003, 10:20 am | ||
inkeol83 wrote:
off course,u need connect to netcount to submit assignment |
Question 1....HELP! by ysakaed (yhsi014) on August 11, 2003, 7:54 pm |
i am wondering.... |
by jwel027 (jwel027) on August 11, 2003, 9:27 pm |
make the Graph class an extension of the GraphAdjMatrix class(i.e. comment out the bottom one and delete the comments from in front of the top one) |
by ysakaed (yhsi014) on August 12, 2003, 4:36 pm | ||
jwel027 wrote:
so we are allowed to modify the files provided? |
by coolbest (ngol002) on August 14, 2003, 10:47 am | ||
ysakaed wrote:
Lets leave it at that: u dont even really need the files provided, unless u want to make yr life really misrable |
tree arc, forward or backward by dyak001 (dyak001) on August 12, 2003, 1:36 pm |
is a strong component a strong component if it's a forward arc or a back arc, surely a forward arc or back arc cannot ever be a strong component since all sub components are not reachable from all nodes in the system, so if we have a single pair of nodes with a single path connecting them and the pairing is a strong component( undirected ), can it ever be a forward arc or a back arc, or can it be both a forward arc and a back arc in which case does that make it two weak components. In this case with two weak components is it a mathematical representation of the sub components contained within the pairing. So if one of the components is not present at all times that would then make it( the pairing ) a weak component, surely? |
by knack (pduf006) on August 12, 2003, 5:28 pm |
one day, you're gonna have an actual legit question and noone will bother reading it. |
by twirl (mlow026) on August 14, 2003, 10:13 am |
Forward arc, back arc; both part of a component. |
Q1 by jzho020 (jzho020) on August 12, 2003, 1:48 pm |
how to run Mark's program(those java files on the web)? the GraphDemo.java can't be compiled. are we supposed to write a program called Floy.java as a part of Mark's program or the Floy.java file is the whole program which can deal Q1? I don't know what Mark's program does and how I start Q1? I don't know what we are supposed to do? I am confused. Could someone make me clear. |
code could someonr have a look and see if they can find the by dyak001 (dyak001) on August 12, 2003, 3:02 pm |
could
someone explain to me why this code works, It seems to run to
previuosly compiled version. Since then it has been recompiled and run
but produces the same output? |
by Jono (jteu004) on August 12, 2003, 6:16 pm |
I
realise you were trying to determine whether there was a bug in your
setup of JCreator, but the code posted was getting a bit borderline.
Ideally sections of working code should never be posted to the forum,
and in this case people may have tried to use it for answering an
assignment question. |
tests for part one!! by GonePostal (ssto040) on August 12, 2003, 3:06 pm |
Can
either Mark, or someone else please provide a weighted adjacency matrix
file, with its corresponding output, so that we can test part 1 of the
asst? I don't see how that can be considered cheating |
the loop is a cycle or not? by fangwen27 (fliu028) on August 12, 2003, 3:14 pm |
hello everyone |
Re: the loop is a cycle or not? by jimmy (syu034) on August 12, 2003, 3:20 pm | ||
fangwen27 wrote:
3....more |
need help!!!! by fangwen27 (fliu028) on August 12, 2003, 3:42 pm |
who can tell me |
by fshe010 (fshe010) on August 12, 2003, 4:31 pm |
no.. it's different. |
by peterpanwei (wpan008) on August 12, 2003, 4:32 pm |
Cycle is a loop, it could only have 2 or 1 notes. The weight of the loop or cycle is the sum of the arcs in the loop(Cycle). i`m not gonna explan why, coz the book says the definition.!! |
variable "u" & "v" by Felix (kcho089) on August 12, 2003, 5:33 pm |
Can anyone tell me the difference between node u and node v? |
by asheltie (ajoh064) on August 13, 2003, 10:10 am |
in the DFS you're looking @ each node in turn, the current node you are looking @ is labelled "V". |
Using Floyd's algorithm with negative arc weights by BAU (itri002) on August 12, 2003, 5:43 pm |
Hi, |
by Blah (zshi005) on August 12, 2003, 7:29 pm |
I
have the same question as well. So I think the "infinity" value should
be the sum of all positive numbers. There is no need to sum up all the
absolute values of numbers even they are negative. |
by jsun027 (jsun027) on August 12, 2003, 10:05 pm |
sum of the positive arcs + 1 will do. |
by christian (celv004) on August 12, 2003, 10:08 pm | ||
Blah wrote:
Yes you don't need to sum anything besides the positive weighted arcs because the idea is to generate a value greater than the sum of the positive arcs to symbolize infinity. Christian |
Negative arc weights by BAU (itri002) on August 13, 2003, 10:30 am |
Hi, |
by BAU (itri002) on August 13, 2003, 11:33 am |
Okay, I'm going to answer my own question for anyone who might be having the same problem (thanks Jono for your insight!): |
why does our groud floor computer lab just like a market??? by skyblue (zwan033) on August 12, 2003, 6:28 pm |
[color=red:5cbda10081] |
study by dyak001 (dyak001) on August 12, 2003, 7:13 pm |
sure |
Marks algorithm by dyak001 (dyak001) on August 12, 2003, 8:20 pm |
just in case Mark doesn't receive or read my email in time for assignment 1, could you ask him when they might change the files that have been compiled for the original ones that are compiled when I press the compile button. it seems as though when I have no code at all listed in the class module it still compiles according to the code that was there some days ago, gees I forget when, although I think I can safely assume that somehow the computer and it's designers(software) have not informed me that the only software at this present time which seems to run on grenwich mean time is number.. well I forget where I was sitting the other day, or earlier today but noone else seems to be having difficulties with their java development environemt...those pesky faults why do so many developers use beta copies to use on us students, If the number of faults found in the assignment is reflective of the quality programs they release then regression analysis and cost function analysis might indicate that the withdrawal of the product from the market for redevelopment and replacement at such a late date might be astronomical. It must be a document driven process which usually requires such a high quality of programmers and developers involved inthe design of the product , since such bad quality programs and such a horrific number of faults at such a late date would indeed indicate under regression analysis that the cost curve would be exponential. |
by Maximum Redg (rred015) on August 13, 2003, 5:31 pm |
What are you on???!! |
mangement and processes by dyak001 (dyak001) on August 12, 2003, 10:08 pm |
any system of rules is deterministic as it determines where, how and when resources are to be managed and resources ditributed within the context of that particular system. A deterministic and containing only one start state and a non-deterministic system more than one start state, so a non-deterministic system introduces uncertainty regarding start states and outcomes, however each subsystem is necessarily deterministic......and therefore must be a finite and descrete set of components. |
About Q3 by Blah (zshi005) on August 13, 2003, 12:16 am |
For Question 3, are we supposed to run DFS on every node or run the DFSv from node 0 is enough? |
by asheltie (ajoh064) on August 13, 2003, 10:11 am |
read the asssignment, |
by Maximum Redg (rred015) on August 13, 2003, 5:28 pm |
Lol look at the timestamps of the posts.... |
by asheltie (ajoh064) on August 13, 2003, 8:03 pm |
damn it you're right......... |
by dyak001 (dyak001) on August 29, 2003, 12:59 pm |
hey when you get an answer can you let me know aswell, I'd reaaly be interested in finishing my dfs asap. |
how to take a file?? by fangwen27 (fliu028) on August 13, 2003, 2:21 pm |
hello : |
by knack (pduf006) on August 13, 2003, 2:38 pm |
your program should take a filename as a parameter - it should understand "java Floyd file1.txt" |
serious taking file problem, jcreator by Jo (ldin005) on August 13, 2003, 3:06 pm |
i am getting panic attacks. could someone help me out plz? |
by asheltie (ajoh064) on August 13, 2003, 3:33 pm |
i'm a little confused, |
by Jo (ldin005) on August 13, 2003, 4:04 pm |
i guess panic state is not helping, you are right i should have made it clearer. what i meant to say was: |
by asheltie (ajoh064) on August 13, 2003, 4:11 pm |
the problem may be that you wrote |
by Jo (ldin005) on August 13, 2003, 4:26 pm |
both matrix.txt and testmatrix.txt are text files that contain matrices, they are all placed in the same folder, they have the same purpose: to be taken by the main method as an argument. and i use only one of the files everytime i try to compile or run. because of the same format and purpose they should only give different weighted adjacency matrices after i ran the floyd.java , at this point. What i concern is that somehow the files can not even be located, or not passed through to the main method. Any idea? |
by Jo (ldin005) on August 13, 2003, 5:45 pm |
i'm on the verge of tearing my hair out. |
by asheltie (ajoh064) on August 13, 2003, 8:01 pm |
i couldn't see that one coming. so the message was for the compiler path not found.......of course, now |
please give me a help!! by fangwen27 (fliu028) on August 13, 2003, 4:08 pm |
hello everyone? |
Re: please give me a help!! by mochagerl (claw026) on August 13, 2003, 4:14 pm | ||
fangwen27 wrote:
use: public static void main(String argv[] ){ ... BufferedReader input = new BufferedReader(new FileReader(argv[0] )); ... } then java floyd input.txt should work- its what i used neway. Hope that helps:) |
Re: please give me a help!! by zbao002 (zbao002) on August 13, 2003, 4:33 pm | ||||
mochagerl wrote:
Part of my codes are: and it works OK.What is the difference between ?I didn't take stage I compsci paper in AKL Uni as well... Thanks |
by fangwen27 (fliu028) on August 13, 2003, 4:49 pm |
thanks !!!!!!!!!!!!!!!!!!!!!!! |
by Maximum Redg (rred015) on August 13, 2003, 5:23 pm |
[quote:b27204e28b] and it works OK.What is the difference between String argv[] and String[] args?I didn't take stage I compsci paper in AKL Uni as well... |
by zbao002 (zbao002) on August 13, 2003, 5:31 pm |
Thanks a lot to the person upstairs! |
Handling multiple matrices... by zbao002 (zbao002) on August 13, 2003, 4:46 pm |
I am using the following codes to handle multi matrices: |
recursion by dyak001 (dyak001) on August 13, 2003, 6:28 pm |
hi, me again.. |
just figured out dyak by aaa (aazz001) on August 14, 2003, 4:33 pm |
it's just a chatbot.. don't get worked up by it!! |
by harsper (jlee188) on August 15, 2003, 12:10 pm |
could u plz send me? i want to see how clever bots can be |
by asheltie (ajoh064) on August 15, 2003, 12:26 pm |
unless
you can convince us that the uni allows anything to join the forum,
which i doubt..........and that you've been given priv's to have 2
usernames......?? unlikely, you're just trying to escape from the
schitzo world you've been living. So to help with your "self-recovery"
i'll accept your poor attempt to rid yourself of this personality and
let's hear no more. |
Re: just figured out dyak by mochagerl (claw026) on August 19, 2003, 9:51 am |
and me too, please? |
singularity by dyak001 (dyak001) on August 27, 2003, 1:09 pm |
is that refering to your frame of reference or something else? |
by gche043 (gche043) on August 27, 2003, 3:09 pm |
me too thanx |
by vpat043 (vpat043) on September 15, 2003, 2:11 pm |
hi. can u send it to me as well? |
paths and logic by dyak001 (dyak001) on August 14, 2003, 6:33 pm |
does anyone know what the definition for a path and logic is. |
paths and logic by dyak001 (dyak001) on August 14, 2003, 6:51 pm |
gee
let me get this straight, if we talk about a paricular way we just
describing the system using general language.o.k. that's fairly basic,
got that bit. |
by Jono (jteu004) on August 18, 2003, 10:24 am |
I've
been deleting posts that are blatantly off topic (although it is best
to err on the side of caution, rather than delete a possibly valid
question). If you don't like anything else posted, just be patient.
Topics that are irrelevant will not be replied to and thus will sink to
the bottom of the forum. |
Moderator! by knack (pduf006) on August 14, 2003, 11:27 pm |
please kill dyak001 so that the forum doesn't completely fill up with sh^h^hrubbish |
mram021 - I have your disk by SamD (sdan017) on August 16, 2003, 1:34 pm |
Hi |
converting dfa and nfa by dyak001 (dyak001) on August 26, 2003, 3:47 pm |
could someone tell me why a regular expression from a dfa which accepts a string 10 and the nfa with the regular expression which accepts the string 10(10)* as in the example in the lecture on friday is an nfa. O.K. it has kleene closure by adding the cycle as a part of the regular expression, but when you convert the dfa to nfa form you get the same machine without the closure. There is only one start state in both and although there closure of the language L, allows a subset of strings 2Q with the nfa and the dfa doesn't, what actually makes it an nfa and not a dfa. Is it just the 2Q regular expression with kleene closure. What if we have machine with more than one start state but no Kleene closure. ALike one that accepts the regular extression 10 ||( e + (10) )...where e is the empty expression and the lhs != rhs. i.e. accept states for the strings are different. |
by asheltie (ajoh064) on August 28, 2003, 10:34 am |
well if you go to tutorials we covered the empty string, it only works if the start state IS also an accepting state. |
q2 & q3 ass2 by dyak001 (dyak001) on August 29, 2003, 2:15 pm |
I don't have a copy of the exercises in the course book for q2 & q3 and was wondering if someone could post a copy? |
q1 e,f dfa by dyak001 (dyak001) on August 29, 2003, 2:48 pm |
1 e |
q1 a all words with 3k b's by dyak001 (dyak001) on August 29, 2003, 3:11 pm |
what doea that mean??if we only have some characters like a,b,c for our alphabet then where is the integers in the language L={}. Can we have like 2K a's as a part of the language and 0k c's aswell? or does it have to exactly match the 3k b's....?so does that mean we can only have the language that exactly matches L={a*(3(nb))*)c* | n >=0} || L={a*(nb)*c* | n/3 is a whole number W >=0 } is that the form that the form we should express it in when outlining the logic? I think I'm still not quite sure when a dfa is a dfa and not an nfa or does it matter??is an nfa always convertible to a dfa? or never? Strictly speaking if we convert the nfa to a dfa is it the same machine? these and many questions more/////////// |
saving time 230 by dyak001 (dyak001) on August 29, 2003, 3:22 pm |
just
to save time I thought I'd post this in 220 forum... has anyone
finished the assignment yet?...how long did it take? if it took you
like more that a week, can I have a copy, my girlfriends really on my
case about spending some more "quality time" with her. I know some of
you geniouses/ers who can wiz through this stuff might be able to help
me out? She(my girlfriend ) is beginning to think!! that the computer
is more important to me than her.... |
Anyone knows how to create a pdf file? by Blah (zshi005) on August 29, 2003, 4:14 pm |
As stated in the title... |
Re: Anyone knows how to create a pdf file? by hrh (rhua009) on August 29, 2003, 4:32 pm |
I want to ask the same question~~~~~ |
Re: Anyone knows how to create a pdf file? by shurik (apry004) on August 29, 2003, 7:09 pm |
try to change extension |
by knack (pduf006) on August 29, 2003, 7:17 pm |
haha i wouldnt |
by shurik (apry004) on August 29, 2003, 8:38 pm |
why not? |
by knack (pduf006) on August 30, 2003, 6:54 pm |
cos changing the extension of a txt file or word document does not convert the format, of course.. |
by skal011 (skal011) on August 31, 2003, 11:41 pm |
to create a pdf file......we need to use pdf writers................. |
by jlin093 (jlin093) on September 5, 2003, 4:03 pm |
To create PDF file you need to install software called Arcobat (NOT Arcobat Reader) which you NEED to buy(VERY EXPENSIVE or you can download from web, hope your guys can find it...^_^ ). |
by DannoNZ (dhaw022) on September 7, 2003, 12:23 am | ||
jlin093 wrote:
Hmm it seems this assignment is encouraging illegal activity already... :( |
by fez (jbro179) on September 7, 2003, 3:27 pm |
they wouldnt make us buy stuff, maybe its on the 101 CD, I saw some acrobat stuff there. |
by chsi021 (chsi021) on September 9, 2003, 9:06 pm |
http://www.pdf995.com/download2.html |
by tmevo6 (cwon093) on September 11, 2003, 5:16 pm |
Anyone who use a Mac will be able to create PDFs easily as this function was built-in to the OS. |
by The Fri (gmar086) on September 13, 2003, 5:34 pm |
You can also try using the program on our 220 resources page |
ass2 by shurik (apry004) on September 4, 2003, 12:39 pm |
For
the regular expansions after the expanding we need to draw DFA and NFA.
Do we need to draw them with brackets or without them |
question about notation '|' by jlin093 (jlin093) on September 5, 2003, 4:09 pm |
hi, guys, can someone explain what '|' means? |
Re: question about notation '|' by shurik (apry004) on September 5, 2003, 5:07 pm | ||
jlin093 wrote:
it means a and ab | is a plus eg (a |ab)(ccc|d) = accc ,ad,abccc, abd hope this helps its like maths |
by shurik (apry004) on September 9, 2003, 3:40 pm |
I dont really rem coz i was changing it a lot but i think |
by Jim (jshe081) on September 9, 2003, 3:31 pm | ||
hut wrote:
Did you put just that in the text file you submitted or this 3 0 1 2 0 0 0 0 -3 0 0 |
Assignment One Q2 by Jim (jshe081) on September 7, 2003, 11:46 am |
can someone who got full marks display there answer, or can someone else tell me why this is wrong, thanks |
by fez (jbro179) on September 7, 2003, 3:30 pm |
yeah id be keen for that too, didnt really know what i was doing on that question but I thought I had it right |
by asheltie (ajoh064) on September 7, 2003, 3:50 pm |
i submitted that matrix and got full marks - lol |
by hut (twan029) on September 7, 2003, 7:46 pm |
mine is as below. and i got full mark for this part. |
by shurik (apry004) on September 8, 2003, 9:22 am |
ok then what's wrong with my one |
by asheltie (ajoh064) on September 8, 2003, 4:29 pm |
looks
okay, i didn't think you had to give a result less than zero. just show
that the algorithm will not pick the least weighted option. |
by shurik (apry004) on September 8, 2003, 10:06 pm |
i got 0 for this, |
Re: Assignment One Q2 by christian (celv004) on September 9, 2003, 10:32 pm | ||
Jim wrote:
I got full marks for this: [code:1:384aa920e6] 3 0 1 2 0 0 0 0 -2 0 0[/code:1:384aa920e6] Christian |
by hut (twan029) on September 10, 2003, 1:52 am | ||
Jim wrote:
yes, with the nodes number 3 and closure 0. |
marking schedule for assignment 1 by hut (twan029) on September 7, 2003, 2:17 pm |
hi,
does anyone know where i can find the marking schedule for assignment
1? i got an unexpected low mark. really wanna find out what is going
on. |
by hut (twan029) on September 7, 2003, 7:30 pm |
have contacted with the marker and it has been fixed. |
Assignment 1 mark by yren004 (yren004) on September 7, 2003, 5:28 pm |
what u guys got for assignment 1? |
by chsi021 (chsi021) on September 9, 2003, 11:47 am |
Somehow I have this feeling that assignment 1 was badly marked! |
Re: Assignment 1 mark by christian (celv004) on September 9, 2003, 10:28 pm | ||
yren004 wrote:
I got 99 of 100 so I'm pretty happy! Christian |
by hut (twan029) on September 10, 2003, 2:09 am | ||
chsi021 wrote:
yes, i have the feeling too(but not only this assignment.). actually i got zero for question 1 at first. then i contacted my marker and he sent me the test input and sample output. mine is the same except the first digraph ONLY which i think the sample output is wrong. (i posted that in my another thread.) anyway, when i got my updated mark, i still got TWO wrong outputs somehow. and then, no reply for my enquiry any more. i think maybe i must have caused too much trouble. i also think we should get the mark schedule posted. is there any one knowing who is supervising the assignment marking? thanks! |
a question relevant to assignment 1/question 1 by hut (twan029) on September 7, 2003, 7:54 pm |
if
there is a matrix having only one entry, 1. does that mean that is a
digraph which has only one node and there is a loop which weights
1?then, the shortest distance from this node to itself should be 0? or
1? |
sample answer by jzho020 (jzho020) on September 10, 2003, 9:31 am |
can we have the sample answer for assignment 1? it's good for us to have a look at the code because we could improve our skill by doing that. If we are allowed to have get the sample answer, that will be great. |
The reason why 220 is so ....xxx? (marker??) by zerodays (dlee064) on September 11, 2003, 5:44 pm |
hm.... sorry about this hassle. |
Re: The reason why 220 is so ....xxx? (marker??) by shurik (apry004) on September 11, 2003, 5:55 pm |
What bout 3? |
by zerodays (dlee064) on September 11, 2003, 6:25 pm |
for Q3, yes, yes assuming the answer we put are exactly like in the sample style, and right. |
by christian (celv004) on September 15, 2003, 11:31 pm | ||
zerodays wrote:
Why would you use 4 nodes when the assignment asks for the smallest graph you can find showing that Dijkstra doesn't work? Should be easy to do it with 3 nodes.... Christian |
by zerodays (dlee064) on September 16, 2003, 9:20 am |
4nodes was what i thought of it as shortest path, |
Starting Assignment 2 by fez (jbro179) on September 11, 2003, 8:56 pm |
Anyone else having trouble starting this assignment? |
Re: Starting Assignment 2 by shurik (apry004) on September 12, 2003, 8:34 am |
Same here i thought i was doing NFA but after reading the notes i realised its DFA. |
answers to assignment 2 by dyak001 (dyak001) on September 12, 2003, 9:15 pm |
now that I have your undevided attention.when is an answer an answer? |
Answer format for assignment 2 by The Fri (gmar086) on September 13, 2003, 5:41 pm |
What sort of format are they looking for? |
by VAhuja (vahu002) on September 14, 2003, 12:22 pm |
Graphically... |
by shurik (apry004) on September 14, 2003, 12:33 pm |
r u sure coz i was thinking doing it as tables |
by jwel027 (jwel027) on September 15, 2003, 11:37 am |
I was thinking of an adjacency list |
by VAhuja (vahu002) on September 15, 2003, 4:39 pm |
Well, if you go to the Assignments page, you will find a link to a tool for drawing graphs. So, I think we have to do it graphically. |
Ass2 Q1,a --?? by Jim (jshe081) on September 14, 2003, 12:00 pm |
are we treating 0 as a positive integer |
by knack (pduf006) on September 14, 2003, 7:26 pm |
i believe not.. but i could be wrong :P |
ass2 by jwel027 (jwel027) on September 16, 2003, 10:25 am |
if we have two regular expressions R1 & R2, sigma = {a,b} |
by VAhuja (vahu002) on September 16, 2003, 10:38 am |
In terms of logic, I don't think it should accept the null string. |
by The Fri (gmar086) on September 16, 2003, 4:34 pm |
I view it as R3 = a|b* |
Comments on Assignment 1 marking by Mark Wilson (mwil211) on September 16, 2003, 4:46 pm |
Since
many people seem bothered by Ass 1 marking, here are the general
guidelines given to markers. They are allowed some flexibility in
interpretation but should be consistent. If you believe an error has
been made in marking, contact the course administrator. |
by hut (twan029) on September 17, 2003, 1:34 am |
thanks for the explaination of the assignment marking! |
by asheltie (ajoh064) on September 17, 2003, 8:55 pm |
i am curious and a habitual speed freak so of course i would like to see your java files. |
by fshe010 (fshe010) on September 18, 2003, 4:29 pm |
yeah,, i really need to see the test file ofr Q1 , because i did some wrong in first question but i still dont know why it was wrong. |
by VVTL-i (ocho004) on September 29, 2003, 1:48 am |
I too would like to would like you to make Q1 test files available, I hope you still read or forum. |
what is the meaning of "n" by jjin008 (jjin008) on September 27, 2003, 5:55 pm |
the relationship between L1 n L2 |
Re: what is the meaning of "n" by christian (celv004) on September 28, 2003, 1:53 am | ||
jjin008 wrote:
It's the intersect, which is the parts of L1 and L2 that are equal. So if L1 = {a,b,c} and L2 = {a,d,e} then L1 n L2 would be {a}. I think. Christian |
A2 Q1 (a) by byan013 (byan013) on September 18, 2003, 1:44 pm |
i confused Q1 (a) |
by byan013 (byan013) on September 18, 2003, 1:46 pm |
i have some idea: does it mean we need to build DFA that accepts |
by jwel027 (jwel027) on September 19, 2003, 2:44 pm |
yep |
by Blah (zshi005) on September 19, 2003, 3:22 pm |
Then what does the {a, b, c} stuff mean? |
by twinkle_star (vsha026) on September 19, 2003, 4:09 pm |
What
i understand from the question is that- the input alphabets are gonna
be a, b or c (thats why the {a, b, c}). there can be any number of a's
or c's. but there is a restriction on the number of b's. the input
number of b's should be a multiple of 3, i.e 3, 6, 9...so on. |
by jsun027 (jsun027) on September 27, 2003, 11:42 am |
About this "3k b" thingee... |
by jbal034 (jbal034) on September 27, 2003, 1:15 pm |
[quote:5119cf6eca] we have to build a min DFA that accepts inputs like abbbc, abacbbcababcb, but rejects inputs like abb, abc. |
by christian (celv004) on September 27, 2003, 2:31 pm | ||
jbal034 wrote:
well does that mean that the b's can be anywhere caz from what i understood it could be like this for eg.. abbbbbbca like 3k b's continiously... could some one please clarify me on this.. thx :) |
Go to the following room for the test on 25 Sept by Mark Wilson (mwil211) on September 18, 2003, 2:29 pm |
Building:109(General Library), Room:B10---> Family Name: A ~ D |
by tmevo6 (cwon093) on September 18, 2003, 10:12 pm |
Can anyone please tell me where Rm 308 of LLT is? |
by shurik (apry004) on September 18, 2003, 10:16 pm |
i think its just LLT |
by tmevo6 (cwon093) on September 18, 2003, 10:33 pm |
I was thinking about that too, but I noticed that: |
by shurik (apry004) on September 18, 2003, 10:39 pm |
oh true |
Note on this week's tutorial by Jono (jteu004) on September 18, 2003, 3:53 pm |
Just remembered a rule that was omitted from the concatenation list... |
(a|b)* and (a*|b*) ?? by byan013 (byan013) on September 18, 2003, 4:20 pm |
what is the difference between (a|b)* and (a*|b*) ??? |
Re: (a|b)* and (a*|b*) ?? by christian (celv004) on September 18, 2003, 4:21 pm | ||
byan013 wrote:
I think that would be the same thing.... Christian |
Re: (a|b)* and (a*|b*) ?? by shurik (apry004) on September 18, 2003, 4:25 pm |
i dont think so |
by twirl (mlow026) on September 19, 2003, 1:04 am |
they would have to mean different things. |
by inkeol83 (ikim008) on September 19, 2003, 8:52 pm |
(a|ab)* ==> {a, ab, aa, abab, aaa, ababab, .... } |
by shurik (apry004) on September 19, 2003, 9:24 pm | ||
inkeol83 wrote:
no its not u need to * a ab aab aba aaba abaa ..... |
Re: (a|b)* and (a*|b*) ?? by lance (yhua059) on September 19, 2003, 9:38 pm | ||
byan013 wrote:
No, they are not. (a|b)* = {a, b}* = {emptyString, a,b,ab,aa,ba,bb,aba........} (a*|b*) = a* U b* = {emptyString, a,aa,aaa,aaaa,aaaaa.....b,bb,bbb,bbbb,bbbbb......} |
by byan013 (byan013) on September 22, 2003, 8:25 pm |
i think lance is right |
by inkeol83 (ikim008) on September 27, 2003, 3:08 pm |
Is Lance perfectly sure? |
by jbal034 (jbal034) on September 27, 2003, 6:22 pm |
got the same problem here son heh :) |
by jsun027 (jsun027) on September 27, 2003, 4:35 pm |
Say lance is right, |
by chsi021 (chsi021) on September 27, 2003, 9:44 pm |
I think all of these are mentioned in the tutorila... ^.* |
Answer format by hrh (rhua009) on September 19, 2003, 10:42 am |
In
order to answer the Q1, do we need to draw the graph of the DFA/NFA, or
we just need to express it in words, like M=(Q={a,b,c}.......)? |
Lan by Lingario (bsme001) on September 19, 2003, 8:05 pm |
Hi all. just to let you know way way in advance. |
by japt003 (japt003) on September 19, 2003, 10:46 pm |
Make sure you get some good stuff and we'll be there. |
by japt003 (japt003) on September 19, 2003, 10:53 pm |
Make sure you get some good stuff and we'll be there. |
by yche276 (yche276) on September 26, 2003, 8:01 pm |
what is lan???? |
a|(a|b)*(bc|(ba|ccc)*)* <-- Question!! by inkeol83 (ikim008) on September 19, 2003, 9:08 pm |
tutor was teaching this stuff and divided this fomular |
by jwel027 (jwel027) on September 22, 2003, 9:00 pm | ||
inkeol83 wrote:
I'd like to know too, as when I was originally working this out, I got this huge machine with 28 nodes where I was working on R1 R2, with R1 = a|(a|b)* R2 = (bc | (ba | ccc)*)* but I found it much easier to work on the expression R1 | R2 R1 = a R2 = (a|b)*(bc(ba|ccc)*)* which yielded a machine with just 13 nodes that whittled away to about 7 or 8 nodes after minimization |
Pseudo vs working knowledge by SamD (sdan017) on September 22, 2003, 11:52 am |
Does
anyone know (100% sure) if we will have to know the pseudo code to
things like BFS, DFS, Floyd, etc for the test or if we just need to
have a working knowledge of how to do everything? |
Assignment 2 Part 2; follow-on? by DannoNZ (dhaw022) on September 22, 2003, 1:53 pm |
For the questions 2-5 of part 2, are these supposed to follow on from each other, or are we supposed to start over each time? |
Assignment2 due data? by david (jyue005) on September 22, 2003, 5:35 pm |
on the course web page, it shows |
by ysakaed (yhsi014) on September 22, 2003, 8:53 pm |
i am guessing its has been extended :D |
by SamD (sdan017) on September 22, 2003, 9:32 pm |
Yeah - the assignment due date is Monday - I have an email from Michael Dinneen saying that - so yeah... |
Q) difference between NFA and DFA by inkeol83 (ikim008) on September 23, 2003, 1:58 am |
I dont know which is which.. |
by hotshotec (lchi026) on September 23, 2003, 10:15 am |
If i'm not wrong what that means is that for each state, if it has like 2 'a' transitions coming out of it going ot different states then it is an NFA.... |
by GonePostal (ssto040) on September 24, 2003, 9:37 pm |
It means that if you have two arrows going from the node with the same letter, then it is an NFA. Its ok to have more than one outgoing transition as long as each transition represents a diferent letter. |
error in Q2 4.8.2 (5)? by hrh (rhua009) on September 23, 2003, 10:20 am |
what's the precedence of "!" ? |
Re: error in Q2 4.8.2 (5)? by christian (celv004) on September 24, 2003, 12:09 am | ||
hrh wrote:
I've noticed that as well and sent a mail to MJD, hoping to get an answer in time... Christian |
by The Fri (gmar086) on September 24, 2003, 10:21 am |
Post his response here if you would please. |
Re: error in Q2 4.8.2 (5)? by christian (celv004) on September 24, 2003, 4:01 pm | ||||
christian wrote:
According to the tutor which i asked after the tutoriual today, the "!" has the highest presedence of all the productions. Christian |
Stupid PDF by Maximum Redg (rred015) on September 24, 2003, 12:04 pm |
Having done the assignment on paper, i decided to begin putting it into a PDF file and submit it... |
by mong (zmen001) on September 24, 2003, 12:20 pm |
strong agree...change to use Word!!!!!!!!! |
by Jill (xche027) on September 24, 2003, 1:26 pm |
Agree!!Agree!! |
by VVTL-i (ocho004) on September 24, 2003, 2:35 pm |
I agree Maximum Redg! Lets make this into a poll. |
by knack (pduf006) on September 24, 2003, 7:28 pm |
yes, the more exclamation marks you put, the more people will see your point of view |
by Maximum Redg (rred015) on September 24, 2003, 7:34 pm |
Has anyone figured out how to make text appear in the pdf using that sh*tty editor that is on the resource page? |
by VVTL-i (ocho004) on September 24, 2003, 7:41 pm |
Have u tried downloading a warez Adobe PDF Writer already? |
by lance (yhua059) on September 24, 2003, 7:43 pm |
download pdf995 |
by Ultrafilter (tzha022) on September 24, 2003, 8:14 pm |
If
you're using computer in the lab, you could print the file to .ps then
convert it online with ps2pdf.com (MS Word will print your .doc to a
.upf file or something like that, you need to change the ext name to
.ps manually). |
by Maximum Redg (rred015) on September 24, 2003, 8:19 pm |
[quote:c883cc3e3e] I agree Maximum Redg! Lets make this into a poll. |
by Blah (zshi005) on September 25, 2003, 10:08 pm |
Stop guys. There is an easy way to convert your word file to pdf file. |
by fever691 (yyan050) on September 26, 2003, 8:56 am |
umm...isn't that service for students with access to the business school computers? |
by yche276 (yche276) on September 26, 2003, 7:29 pm |
do we have to use com school computer??? |
by Blah (zshi005) on September 26, 2003, 8:04 pm |
I got the r drive from the cs lab anyway. I am not sure whether others got that as well:P |
Test coverage by VVTL-i (ocho004) on September 24, 2003, 5:57 pm |
Hello fellow hardworking students, |
by Maximum Redg (rred015) on September 24, 2003, 8:11 pm |
Hmm,
check your email, i got one from Mike a couple of days ago clearing
this up, i deleted it... but i think it was something along the lines
of that there will only be automata theory, and not the stuff hes been
doing with parse trees and grammar.... |
Test Times... by chsi021 (chsi021) on September 24, 2003, 10:17 pm |
[color=darkblue:5a565c5420] This is from another thread........[/color:5a565c5420] |
Do we have the lecture today? by Bigbear (hyan052) on September 25, 2003, 12:28 pm |
Do we have the lecture today? |
by byan013 (byan013) on September 25, 2003, 1:54 pm |
no |
COMPSCI.220FT Graph Q1 by Bigbear (hyan052) on September 25, 2003, 2:01 pm |
1. Write down the strong components of the digraph whose adjacency |
by bhavik (btha002) on September 25, 2003, 3:41 pm |
yes ur right |
qu2 ass 2 by jwel027 (jwel027) on September 26, 2003, 1:00 am |
is the unary production a recursive one? I've got something like |
a|(a|b)* = by christian (celv004) on September 26, 2003, 3:01 pm |
is it: {es, a,b,aa,bb,aaa,bbb,....,} |
by jwel027 (jwel027) on September 26, 2003, 4:06 pm |
I think it's the latter because the (a|b)* term on the right picks up basically every combination of a's and b's in the language that the "a" on the left doesn't (assuming sigma is {a, b}) including the empty string. |
4.8.4 Q5 by HHS (hhua058) on September 29, 2003, 11:21 am |
What is the meaning of "#" and x#y? |
IPE!!!! by yche276 (yche276) on September 26, 2003, 7:28 pm |
I saved my work as a PDF file in IPE. But the adobe reader can not open it!!!! Some one help me please!!!! |
by mong (zmen001) on September 26, 2003, 8:22 pm |
that is y I suggest to change Word to submit lo..if someone wish..convert them by theirself lo..they know how to convert to PDF anyway...><!! |
by mong (zmen001) on September 26, 2003, 9:06 pm |
sorry to say that lo..finally I got mine one converted succesfully...good...hoho |
by shurik (apry004) on September 26, 2003, 9:48 pm |
how did u manage that? |
by mong (zmen001) on September 27, 2003, 10:52 am |
just like someone said on the forum..go to adobe web site and click free trial..apply one account..then u can convert 5 free .pdf document lo..hahha..that works....... |
I am soooooooo confused by (a|bc)* by inkeol83 (ikim008) on September 27, 2003, 2:59 pm |
this confuses me because many different thoughts are on forum and I think is correct but still not sure!! |
by chsi021 (chsi021) on September 27, 2003, 9:48 pm |
yes the regx (a|bc)* means something like |
about ((ba|ccc)*)* by jjin008 (jjin008) on September 27, 2003, 4:33 pm |
i am confuse about this , who can give me a regular expressions |
by jbal034 (jbal034) on September 27, 2003, 6:21 pm |
i agree [quote:fa9e0df82c] It's the "|" . |
About Question 3.3 by Blah (zshi005) on September 27, 2003, 5:05 pm |
Does anyone know what the "+" sign denote for? Does that mean the "|" operator or the actual plus operator? |
by VAhuja (vahu002) on September 27, 2003, 5:31 pm |
It's the "|" . |
by fez (jbro179) on September 28, 2003, 3:13 pm |
Me too |
by asheltie (ajoh064) on September 28, 2003, 4:16 pm |
maybe you did get an answer - but it was white space so you missed it? |
(bc|ba|ccc)* and (bc|(ba|ccc)*)* by jsun027 (jsun027) on September 27, 2003, 10:06 pm |
As long as inputs are concerned, wot is the difference between automata (bc|ba|ccc)* and (bc|(ba|ccc)*)* ? |
by VAhuja (vahu002) on September 28, 2003, 11:02 am |
They are not the same...You can refer to a previous post with a similar question.. |
What is the point of a|(a|b)*(bc|(ba|ccc)*)*? by gche043 (gche043) on September 28, 2003, 12:49 am |
Let
me ask all of you, do you think it will be any point of making this
automaton? i manage to get the answer (i hope i did) and its this long
a$$ DFA i also had the pleasure of minimising. |
Question about NFA and DFA by inkeol83 (ikim008) on September 28, 2003, 1:05 am |
_____|__1___ |__2____<-- inputs |
Re: Question about NFA and DFA by christian (celv004) on September 28, 2003, 1:56 am | ||
inkeol83 wrote:
I think you can have an empty state in a DFA, it just means it is a not very usable machine.....You need to put the empty state in the transition diagram, though. Christian |
4.8.2 by lance (yhua059) on September 28, 2003, 2:33 am |
are we expected to give grammers which always extend privious questions? |
by VAhuja (vahu002) on September 28, 2003, 12:39 pm |
I think the questions are independent of each other... |
by shurik (apry004) on September 28, 2003, 12:59 pm |
i think they extend each other |
by jsun027 (jsun027) on September 28, 2003, 7:12 pm |
Each grammar should based on the its previous one. |
by The Fri (gmar086) on September 28, 2003, 8:56 pm |
Great minds think alike |
by recah (ichi007) on September 28, 2003, 10:27 pm |
[quote:906a65fc4c="The Fri"] Great minds think alike |
by yren004 (yren004) on September 29, 2003, 1:27 pm |
Agree... |
4.8.2 Q5 by byan013 (byan013) on September 28, 2003, 5:20 pm |
do we need to do Q5 on 4.8.2 ?? |
by The Fri (gmar086) on September 28, 2003, 6:01 pm |
You mean 4.8.4? |
by byan013 (byan013) on September 28, 2003, 6:08 pm |
yes |
by jbal034 (jbal034) on September 28, 2003, 8:03 pm |
[quote:5b6816c46b] Im assuming we do, since the assignment specs say Sesction 4.8.4 (1-5) and not (1-4) |
where should "!" be?? by pump (jbai034) on September 28, 2003, 7:41 pm |
the last part of Q2 didnot mention the level of "!" related to other operators, who konws where it should be? |
by The Fri (gmar086) on September 28, 2003, 8:47 pm |
There was a previous post regarding this |
Q1 (e) by ceostin (mlee113) on September 28, 2003, 8:44 pm |
anyone done 1. (e), could you gimme some ideas how to do it? |
by The Fri (gmar086) on September 28, 2003, 8:51 pm |
For Questions e and g, theres bits in the course book about these issues. Once you understand question e, I think u might get a better understanding of how to solve f. |
pdf by jzho020 (jzho020) on September 29, 2003, 12:49 pm |
can we find a scanner at Uni?? where?? |
by yren004 (yren004) on September 29, 2003, 1:25 pm |
there're some in Tamaki lab. |
by jbal034 (jbal034) on September 29, 2003, 2:14 pm |
there are some scanners in the basement of the new computer science building.. |
For Question1.c) by inkeol83 (ikim008) on September 29, 2003, 1:52 pm |
Do I lose marks for not putting transition table? |
by fshe010 (fshe010) on September 29, 2003, 3:26 pm |
no. as long as your minimized graph is right |
anyone can give a hint for 4.8.4 Q5? by hrh (rhua009) on September 29, 2003, 5:23 pm |
anyone can give a hint for 4.8.4 Q5? |
IPE and Latex by drflower (dflo006) on September 29, 2003, 8:05 pm |
From the IPE homepage download section: "It includes everything you need to run and use Ipe on Windows" |
Leftover lecture and assignment handouts .... by Burkhard (bwue001) on September 30, 2003, 7:37 pm |
... can be found in the boxes in the staircase opposite to the resource centre (basement of the science centre). |
Change of lecture theatres by Burkhard (bwue001) on September 30, 2003, 7:54 pm |
Because
of the Vice-Chancellor's Robb Lecture Series the COMPSCI 220 lecture
moves on Tuesday the 14th October, Thursday the 16th October and
Tuesday the 21st October (5-6pm) from LLT to PLT1. |
by asheltie (ajoh064) on October 2, 2003, 8:11 pm |
your lecture 2day was interesting. |
by knack (pduf006) on October 3, 2003, 6:07 pm |
.. how would you do that with raytracing? i missed the lecture (sorry) so perhaps i missed something interesting |
by asheltie (ajoh064) on October 4, 2003, 12:34 am |
he mentioned ray-tracing and how it resembles the way we see things in reality, but applied in reverse order. |
by Burkhard (bwue001) on October 4, 2003, 1:35 pm | ||
asheltie wrote:
An interesting question :-) I haven't seen any research papers about this topic. In principal it is possible but there are practical limitations. For example, assume we have an observer with a lens distortion (e.g. short sightedness). For a given focal point, say the centre, of the image it is possible to trace the rays is such a way that the resulting (distorted) image compensates for the lens distortion of the observer. However, if the look-at point of the oberver changes, say he/she looks at a corner of the image, then this wouldn't be the case anymore. So what you really want to have is an image which dynamically distorts according to the look-at point of the observer. The above described idea is however useful in another applications, i.e. the correction of images obtained with low quality cameras (such as web cams). Since the lenses of such cameras are usually of very low quality they produce a distorted image. Using a test scene it is possible to develop a transformation which corrects the web-cam image. Sounds like a good stage 3 project :-) (Actually there are many papers on this topic but it's a useful topic and has an acceptable difficulty) Cheers, Burkhard |
by asheltie (ajoh064) on October 4, 2003, 6:33 pm |
i'm doing a Logic and Computation degreee. |
by Burkhard (bwue001) on October 4, 2003, 8:37 pm | ||
asheltie wrote:
In order to do a Computer Graphics project I usually expect that that a student has done 372 and passed with B+ or better (exceptions are possible). In some circumstances I allow students to do 372 and a 380/780 project at the same time but in general I recommend to do 372 first. 375 is not necessary to do a Graphics project but it is very useful if you want to do a project which involves both Computer Graphics and Computer Vision. I think Computer Graphics and image processing fit quite nicely into your degree so unless there are some regulations which prevent you from doing this I think it's a good idea to do these courses :-) See you, Burkhard |
Big O (Tutor, please tell me) by jzho020 (jzho020) on October 3, 2003, 1:27 pm |
what's the big O for the following two loops? |
by jwel027 (jwel027) on October 3, 2003, 2:24 pm |
aren't they both O(1)? |
by asheltie (ajoh064) on October 3, 2003, 2:25 pm |
i'm not a tutor but these r too easy that the real tutor probably won't bother answering |
by shurik (apry004) on October 3, 2003, 2:34 pm |
why |
by knack (pduf006) on October 3, 2003, 6:10 pm |
i would have thought they were O(n) and O(n²) |
by jzho020 (jzho020) on October 4, 2003, 1:48 am | ||
knack wrote:
One of my friends at other University said that he was told the big O for the previous questions are O(1) (bothof them) by his tutuor. I am a bit confused , that's why I asked such a simple question. |
by Burkhard (bwue001) on October 4, 2003, 1:48 pm | ||||
jzho020 wrote:
We will talk about the "Big-Oh" notation in the next lecture. If you have a look into the course book you will see that the "Big-Oh" notation captures the running time of an algorithm with respect to a constant factor, i.e. g(n)=O(f(n)) is there are two constants c and n0 such that g(n)<=c*f(n) for all n>n0. If your loop takes one thousand steps then choose f(n)=1, n0=1 and c=1001 and you have t(n)<=c*f(n) for all n>n0. This means the loop is O(1). Similarly you get the same result for the double loop above since both loops have a constant number of steps. Of course if you change 1000 to n then you get indeed O(n) for the single loop and O(n^2) for the double loop. You can verify very easily that O(1) doesn't work in that case: let's say the single loop has a running time of T(n)=c*n. Then there are no constants c1 and n0 such that c*n<c1*1 for all n>n0. In order to proof that the loop is O(n) you can choose c1=(c+1) and n0=1: c*n<(c+1)*n for all n>1, i.e. a single loop with n steps and a constant number of steps in the loop body has the time complexity O(n). Hope that helps, Burkhard |
by Cannabis (chua031) on October 12, 2003, 4:20 pm |
how about n^-1 |
by Burkhard (bwue001) on October 14, 2003, 7:39 pm | ||
Cannabis wrote:
n^-1 = O(1) since you can find a c, n0 such that n^-1<c*1 for all n>n0. For example, choose c=1 and n0=1. Note that the function n^-1 doesn't make sense as a running time since a computer program can't get infinitely fast for infinitely large data sets. Cheers, Burkhard |
solution..... by pump (jbai034) on October 3, 2003, 6:18 pm |
Burkhard: |
Re: solution..... by Burkhard (bwue001) on October 4, 2003, 1:37 pm | ||
pump wrote:
Yes, I will post the solutions a couple of days after we talked about the topics in the lecturer. The reason for this is that I want to give everybody the opportunity to try the exercises without being "tempted" to look at the solution first. Cheers, Burkhard |
The hint of A3:Question2 is useless if a>b>1 not b> by ryan (rzha030) on October 5, 2003, 1:18 pm |
Dear Burkhard, could please check it? |
Re: The hint of A3:Question2 is useless if a>b>1 not b by Burkhard (bwue001) on October 5, 2003, 3:35 pm | ||
ryan wrote:
The hint is correct. If you do telescoping and you have values q>1 in your sum then of course you can still solve the recurrence relation but you can't use the formula given in the hint and your solution is not as nice and elegant as the one suggested by giving you the hint. If you have a close look at your telescoping sum you will recognise that you can rewrite the sum so that you have a different factor before the sum and values q<1 in the sum which allows you to use the formula in the hint. Hope that helps, Burkhard |
Ass3 Extension? - Early Warning? by al (amar135) on October 6, 2003, 3:03 pm |
Hi Burkhard, |
by Bigbear (hyan052) on October 6, 2003, 3:32 pm |
Yes, I also hope there will be a extension. |
by asheltie (ajoh064) on October 6, 2003, 4:17 pm |
the 220 a3 is very easy if u take a good look at it. |
Re: Ass3 Extension? - Early Warning? by Burkhard (bwue001) on October 7, 2003, 8:45 am | ||
al wrote:
The assignment 3 is very easy and you can answer most of the questions already now. Note that question 3 is not related to the analysis of sorting which we will do later in the lecture. You can solve the question without any knowledge of Computer Science just by thinking about it. We will talk about the big-Oh notation today in the lecture and then you will then be able to finish that question, too. A good student who understands everything in the lecture should be able to finish the assignment in 1-2 hours maximum! I will hand out assignment 4 on Friday and that assignment will be a bit longer and will also contain some programming questions. Anyway, I better tell you now that I give extensions unless you have a doctor certificate or some very special circumstances arise. If I would give an extension then: 1) you are likely to need another extension for the second assignment 2) you have less time to study for the exam 3) I can't publish the sample solutions until everybody hands in which might mean that you don't get the sample solutions before the exam. 4) the markers are even less likely to finish marking before the exam which certainly doesn't help you with the exam. If you have too much work to do for other courses please feel free to ask the supervisors of these courses for an extension :-) The workload for this course and for this assignment in particular is well within the usual limits and shouldn't cause you any problems. Cheers, Burkhard |
by al (amar135) on October 7, 2003, 2:10 pm |
Cool. Thanks for the reply. I didn't notice 25/6% = 4.16% and there's an assignment 4! Duh! |
Solution to exercise sheet 1 is now online ... by Burkhard (bwue001) on October 7, 2003, 8:50 am |
[url] http://www.cs.auckland.ac.nz/compsci220s2c/lectures/Burkhard/220S2C_2003_Part3_Lec2_solutions.pdf[/url] |
The solution for the exercise sheet 2 is now online by Burkhard (bwue001) on October 8, 2003, 11:30 am |
[url] http://www.cs.auckland.ac.nz/compsci220s2c/lectures/Burkhard/220S2C_2003_Part3_Lec3_solutions.pdf[/url] |
question 2 - the solution :-) by asheltie (ajoh064) on October 9, 2003, 10:12 am |
now that i have your attention, |
by jwel027 (jwel027) on October 9, 2003, 4:51 pm |
I don't think it matters because a>b, therefore the ratio you get at the end should mean that it fits nicely into one of the solutions on p42-43. |
by asheltie (ajoh064) on October 9, 2003, 8:43 pm |
sweeet |
by DannoNZ (dhaw022) on October 11, 2003, 10:19 am |
I really still don't understand this question about how to sum the items left over up, and didn't follow what was explained in class about it. I don't understand how to use the knowledge that a<b<1 to in any way simplify the terms so they would fit into the hint given... |
by asheltie (ajoh064) on October 11, 2003, 4:00 pm |
it
seems alot of people do not know about it.........i was able to ask
sum1 from China, where they learn the formulas like this in high school
maths. |
by fez (jbro179) on October 12, 2003, 6:54 pm |
I dont know how to do this either, I understand Telescoping, but not with confusing-ass formulas like that. |
by nlaw019 (nlaw019) on October 13, 2003, 12:32 am |
a>b>1 is very useful, without this, you won't be able to use the hint given......... |
Staff/Student Meeting by SamD (sdan017) on October 9, 2003, 2:41 pm |
Hey guys, |
Test Mark by stsu010 (stsu010) on October 9, 2003, 8:55 pm |
When will the test mark be out?? It's been quite a while since we did the test. |
by asheltie (ajoh064) on October 10, 2003, 4:15 pm |
have to agree, |
by twinkle_star (vsha026) on October 11, 2003, 4:35 pm |
i had emailed Rakib and he replied saying that the test marks will be out by the end of next week. |
by stsu010 (stsu010) on October 11, 2003, 6:24 pm |
cool, thanks. |
Assignment3 solution format by Felix (kcho089) on October 9, 2003, 9:23 pm |
Can anyone tell me what the format of the assignment3 solution? At the end says put the answer into a .doc, does it mean just the final answer or include workings as well?Cheers |
by cko011 (cko011) on October 9, 2003, 9:50 pm |
I want to question it as well, seems many question can work out just the first eyesight, not really know how to show working on some of these questions. |
by twirl (mlow026) on October 12, 2003, 1:43 pm |
plus, can we handwrite then scan it? |
Re: Assignment3 solution format by Burkhard (bwue001) on October 12, 2003, 2:49 pm | ||
Felix wrote:
For question (1) it's enough to give the solution - though if it's wrong you have automatically 0 marks, whereas if you show your working the markers might give you partial marks. For question 2 and 3 you MUST show your working. The solution should be in '.doc' or 'pdf' format. If you write the document by hadn and then scan it make sure that the images are compressed. It's probably best to first reduce the number of grayscale bits and then convert it into gif-format. Anyway, as long as the markers can read your document on their computers and it is not too big (< 1MByte) then it's fine. Cheers, Burkhard |
Broken Links at the Lecture Slide by gche043 (gche043) on October 10, 2003, 1:20 am |
It seems that the lecture slides are no longer accessible through the compsci website... is it deliberate or is it being fixed? |
Re: Broken Links at the Lecture Slide by Burkhard (bwue001) on October 12, 2003, 2:54 pm | ||
gche043 wrote:
Works fine with me. Maybe the server was temporarily down - this has happened a couple of times lately. If you access the slides from home the chance that something doens't work is even higher since all connections outside the department are managed by ITSS. Cheers, Burkhard |
study by jwel027 (jwel027) on October 10, 2003, 9:40 pm |
in the answers to FIRST SEMESTER, 2002 exam, georgy has got in a table that a polynomial with leading term 100n^3 is O(n^4)(the table on page 2, 4th row). Is this a typo? |
by asheltie (ajoh064) on October 11, 2003, 4:02 pm |
without seeing the paper - it looks like a mistake '_,_' |
by Mark Wilson (mwil211) on October 13, 2003, 2:24 pm |
It
doesn't look like a mistake to me. It seems true, though not as precise
as it could be. Remember what the definition of big-O is: the key fact
is that if f is O(g) and h is bigger than g then f is also O(h). It is
only an inequality in the definition after all. |
Re: study by christian (celv004) on October 13, 2003, 3:55 pm | ||
jwel027 wrote:
It's not a typo, 100n^3 is O(n^4), but it's not the smallest O, called big Theta, which is what we really want.... Christian |
Ass03 Question3 by jrub001 (jrub001) on October 12, 2003, 11:55 am |
Can
someone please help me with Question 3, I must be missing something
because I thought the quickest sorting algorithm available is something
like O(n log n). So, how are we supposed to come up with a linear time
algorithm?? I have read over the question a million times, but I still
can't spot the catch(if any exists). |
by asheltie (ajoh064) on October 12, 2003, 1:19 pm |
linear time means.....0(n) |
by jrub001 (jrub001) on October 12, 2003, 2:28 pm |
I know, isn't O(n log n) greater then O(n) |
Re: Ass03 Question3 by Burkhard (bwue001) on October 12, 2003, 2:44 pm | ||
jrub001 wrote:
The fastest comparison based algorithm for sorting a collection of items with a total order but no other restrictions is indeed O(n log n)! However, we do have some additional restrictions, e.g. we know that all items are within a certain range of numbers ... well, I can't say more than this without giving the solution away. You might also want to think about whether you really need comparions for sorting the items. By the way, the solution has nothing to do with the sorting algorithms explained in the course book. Cheers, Burkhard |
by jrub001 (jrub001) on October 12, 2003, 4:26 pm |
Cheers |
The solutions for the exercises to lecture 4 and 5 are ... by Burkhard (bwue001) on October 12, 2003, 2:39 pm |
... now online :-) |
Assignment 4 AND SOURCE CODE is now online ... by Burkhard (bwue001) on October 12, 2003, 3:00 pm |
The
assignment was handed out on Friday. I put all left over copiesin the
220 box in the staircase opposite to the resource centre (basement of
the science centre). |
by Blah (zshi005) on October 14, 2003, 1:23 pm |
I looked at the assignment web page but there is no such skeleton file methinoned in the handout avaliable. Is that because you haven't put it up or it resides somewhere else? |
by Burkhard (bwue001) on October 14, 2003, 7:25 pm | ||
Blah wrote:
Sorry, completely forgot!! :-( I have put it now onto the web page. Thanks a lot :-) See you, Burkhard |
a question? by fangwen27 (fliu028) on October 12, 2003, 5:24 pm |
who tell me |
by The Fri (gmar086) on October 12, 2003, 5:43 pm |
O(n^2) |
by Jono (jteu004) on October 14, 2003, 8:36 am |
Actually,
when computing big-O we want the tightest upper bound. Any negative
term does not increase the rate at which an algorithm slows with
problem size. |
by Mark Wilson (mwil211) on October 15, 2003, 10:39 am |
This
whole thread doesn't make sense. The definition of big-O on p27 of
coursebook only refers to functions that are (eventually)
positive-valued, and n - n^2 certainly isn't. |
Marks for assignment 2-Disappointing as hell by mram021 (mram021) on October 12, 2003, 6:56 pm |
Hey ! |
by Mark Wilson (mwil211) on October 13, 2003, 2:20 pm |
I suggest you email the course administrator, whose job it is to consider such cases. |
Big Os by twirl (mlow026) on October 12, 2003, 9:37 pm |
for decreasing functions like 4n^-3, do they have a lower computational complexity than constant time O(1)? |
by VAhuja (vahu002) on October 13, 2003, 9:18 am |
I think the functions wth negative powers will have lower Computational Complexity, as compared to 0(1). Reason, when n -> infinity, the function(s) will tend to zero. |
Re: Big Os by christian (celv004) on October 13, 2003, 3:57 pm | ||
twirl wrote:
Functions with complexities like that are actually impossible I think, because it is impossible to increase the computing time by increasing the input data.... Christian |
by Jono (jteu004) on October 14, 2003, 8:48 am |
Now
this is not definite, but in my view if we have a function f(n) =
O(n^-1) for example, then the existance of hidden constants means that |
Re: Big Os by Burkhard (bwue001) on October 14, 2003, 7:33 pm | ||||
christian wrote:
That's right, it doesn't really make sense to have a function with decreasing running time. But assumed you really want to have a Big-Oh notation then n^k (k<0) is O(1). As far as I know O(0) is not defined - but even if it were, you can't say that n^k (k<0) is O(0) since n^k>0 (k<0) for all n. Hence you can't find constants c and n0 such that n^k < c*0 for all n>n0. Hope that helps, Burkhard |
Big Oh for Log by Felix (kcho089) on October 13, 2003, 12:33 pm |
Can anyone tell me whats the Big Oh for "Log5n*Log5n"??? |
by jlin093 (jlin093) on October 13, 2003, 1:41 pm |
It's (log5n)2 which is 25(logn)2. Thi big-oh is O((logn)2) |
by Felix (kcho089) on October 13, 2003, 3:04 pm |
Cheers!! |
Announcement: test solutions by Mark Wilson (mwil211) on October 13, 2003, 3:18 pm |
In case you don't read your email: |
by zerodays (dlee064) on October 13, 2003, 5:12 pm |
yo, i read my email every 5 min, never got a such mail.. |
About the assignment 2 mark by Blah (zshi005) on October 14, 2003, 10:13 am |
I am really confused about my assignment marking sheet. How much is this assignment marked out of? And how much mark is allocated for each section? It just indicates how much I got for each section but I cannot tell whether I was deducated any mark for that section without knowing the total!!! Plz give us clear feedback OK??? |
by mong (zmen001) on October 14, 2003, 10:22 am |
agreeeeee................... |
by zerodays (dlee064) on October 14, 2003, 12:11 pm |
unhappy with the ass2 mark. i sent email request about marks to Rakib |
by twinkle_star (vsha026) on October 14, 2003, 12:11 pm |
i hvnt got my marks yet :-( |
by christian (celv004) on October 14, 2003, 1:18 pm | ||
twinkle_star wrote:
Good! Then I'm not the only one.... PS! Has anyone received their test marks from that horrible test we had several weeks ago? Or are they still trying to figure out what to do since results were so poooooor.... Christian |
by byan013 (byan013) on October 14, 2003, 3:08 pm |
i do not have any test mark or assignment2 mark yet ~~~~ |
by stsu010 (stsu010) on October 14, 2003, 4:36 pm |
i havent got my marks too, but my friends all got their marks back. |
by cko011 (cko011) on October 14, 2003, 6:22 pm |
I suggest that better not knowing the test marks, as heard the tutors said, most ppl in the class fail the test |
by stsu010 (stsu010) on October 14, 2003, 8:25 pm |
what???!!!! many ppl failed, omg. when will the result be out?? |
by asheltie (ajoh064) on October 14, 2003, 8:47 pm |
still no marks, |
by stsu010 (stsu010) on October 14, 2003, 9:04 pm |
i still got no marks for my assignment 2, what is going on?? |
ASG4 - Where are the skeleton files? by christian (celv004) on October 14, 2003, 6:22 pm |
The assignment description mentions some files that we can download from the assignment web page, but I can't find them.... |
Re: ASG4 - Where are the skeleton files? by Burkhard (bwue001) on October 14, 2003, 7:28 pm | ||
christian wrote:
Sorry, completely forgot. They are now on the assignements webpage [url] http://www.cs.auckland.ac.nz/compsci220s2c/assignments/[/url] . Cheers, Burkhard |
Clarification to ASG4 Q1 a i please by christian (celv004) on October 14, 2003, 9:36 pm |
1. |
Re: Clarification to ASG4 Q1 a i please by Burkhard (bwue001) on October 15, 2003, 4:55 pm | ||
christian wrote:
The algorithm works for any number of n. The assumption n=4^m was only added to make the analysis easier. An example with n=4 would have been trivial and an example with n=16 would have been to long. [quote:f58f06ea9d] 2. When is your office hours? |
Assignment 2 mark by byan013 (byan013) on October 15, 2003, 8:46 am |
i spent some time to understand the marked sheet |
by fshe010 (fshe010) on October 15, 2003, 10:22 am |
yes..i think it's right |
Re: Assignment 2 mark by christian (celv004) on October 15, 2003, 10:22 am | ||
byan013 wrote:
Seems that way yes....finally got my mark today....not too good I'm afraid. Christian |
by asheltie (ajoh064) on October 15, 2003, 12:40 pm |
how'd it go Christian? |
by byan013 (byan013) on October 15, 2003, 1:10 pm |
anyway , many people complain about the marking |
by byan013 (byan013) on October 15, 2003, 1:11 pm |
by the marker |
by christian (celv004) on October 15, 2003, 1:35 pm | ||
asheltie wrote:
I got 49 so I guess it's not that bad, but I spent a whole week doing it so I was hoping to do better...but anyways, now it's assignment 4 that counts! Cheers, Christian |
by zbao002 (zbao002) on October 17, 2003, 2:19 pm |
I have received a mail from the marker which has nothing in the content at all!!! Quite worried about the mark... |
by byan013 (byan013) on October 17, 2003, 2:30 pm |
yes |
by The Fri (gmar086) on October 17, 2003, 9:11 pm |
I ended up getting 58.5 / 59, and no I didnt do the bonus question, didnt know what was going on with that question. |
Why out of memory in A4 Q1bii? by ryan (rzha030) on October 16, 2003, 1:33 am |
I didn't do insertionSort(n), but my program run out of memory. So what's the problem? |
Re: Why out of memory in A4 Q1bii? by christian (celv004) on October 16, 2003, 1:47 am | ||
ryan wrote:
How big n did you use? Christian |
just the same as the assignment by ryan (rzha030) on October 16, 2003, 8:01 pm |
it is 6553680 |
by mong (zmen001) on October 16, 2003, 9:24 pm |
and
it takes long time to get the value back..then we can draw the
table..from the table that handout shown..the most one is almost 700000
milliseconds, which is 700 seconds, is nearly 10 mins to get answer.. |
by DC (jli030) on October 17, 2003, 11:05 am |
just
wondering how I can make quickSort take 10s - 25s. Seems machines in
the Uni's labs r too fast. When I tried to use a large value of n, it
would raise outOfMemory exception.. |
by DC (jli030) on October 17, 2003, 12:42 pm | ||
mong wrote:
That is just the average time it takes to sort 10 arrays. So after sorting each of those 10 arrays, it would end up 10*10 mins. then u can calculate the average is 10 mins. That means, we have to wait for 10*10 mins which is longer than one hour in order to get the final result.. Mad!! Or I may be misunderstanding the meaning of the question.. |
by Burkhard (bwue001) on October 17, 2003, 12:58 pm |
[quote:796aeee4d2]
That is just the average time it takes to sort 10 arrays. So after
sorting each of those 10 arrays, it would end up 10*10 mins. then u can
calculate the average is 10 mins. That means, we have to wait for 10*10
mins which is longer than one hour in order to get the final result.. |
by pump (jbai034) on October 20, 2003, 12:46 pm | ||
DC wrote:
1.use "break" to jump out of the loop 2.n is an "int" not a "long", it cannot be too large |
by yren004 (yren004) on October 20, 2003, 4:35 pm |
don't even see, guys// |
by pump (jbai034) on October 20, 2003, 5:55 pm | ||
yren004 wrote:
as int < long, ok? i guess int is only up to 2^31-1....~~~ |
by Burkhard (bwue001) on October 21, 2003, 7:11 pm | ||
yren004 wrote:
It depends how you implement your algorithm. Say n=6000000 and you have an array of integers. The size of an array is 4 bytes, i.e. the memory for that array is 24 MByte. The mergeSort requires a temporary array of size n to do the sort, ie. you need at least 48 MByte on main memory. If you use an array of long than you will need even double as much (in C a long variable is 8 byte long - I can't remember how it's define din Java but I assume it's the same). There are additional memory requirements for the recursive function calls which are put on the function stack. I didn't experience any problems but dependent on your set up you might also run out of stack space. The whole think gets more interesting if you sort 10 arrays. If you use the same array for each sort and reinitialise it after each sort then the total memory requirement won't change. If you allocate 10 arrays of this size then you need 10 times as much space, ie. 240 MByte for the 10 arrays and 24 MByte for the temporary array for mmergeSort. You can see that in this case you will almost certainly run out of memory. In summary: On most machines memory shouldn't be an issue and the problems are almost certainly related to the way you have implemented your algorithm. It's best if you try to figure out the available memory fo your computer (use the task manager) and you estimate the memory your program is using. As mentioned in the announcement you are allowed to change the time interval in (i) in order to get a smaller array. Hope that helps, Burkhard |
by yren004 (yren004) on October 21, 2003, 7:58 pm |
maybe u are right sir~ |
A4,1(b) by jzho020 (jzho020) on October 16, 2003, 9:52 am |
How big is n? what do you guys get? I got 13107200 . |
by mong (zmen001) on October 16, 2003, 1:34 pm |
I think u should also say how many time u go throught it.. |
by jzho020 (jzho020) on October 16, 2003, 2:06 pm | ||
mong wrote:
Ok, this time , I rum my program on a different computer. And I got 17236 milliseconds and n is 3276800. In this case I pass the same array to the quickSort() method. If I passed 10 different arrays to quickSort(), I got 10075 milliseconds and n i 1638400. I guess you r doing it in this way. Can u see that, 3276800 is 2* 1638400, and 20144 is approximate 2*10075. Your program does not accept 10 seconds as result. What is the range of the result ? Is it 10s < result < 25s or 10s <= result < 25s ? |
by mong (zmen001) on October 16, 2003, 3:44 pm |
I donot know..becasue I changed my program to if the time over 10000 millisecond, then go out..but I got the same output as before. |
by jzho020 (jzho020) on October 16, 2003, 3:58 pm | ||
mong wrote:
I see. I tried my program on another computer, this time I got 20218 milliseconds with n is 3276800. |
Re: A4,1(b) by Burkhard (bwue001) on October 17, 2003, 2:35 pm | ||
jzho020 wrote:
You must have a pretty fast computer. In the stage 2/3 lab you will almost certainly get an array size of about 3,000,000 entries. In some circumstances you might get double that one and in some cases half that size. My machine has a 1.4GHz processor which I believe is faster than the lab machines and I usually get arrays with abou 6,000,000 entries. As mentioned in one of the other postings if you want to compare your results with those of other people in the lab it's a god idea to quote the time it took to sort that array. For example, say it takes 9.9 seconds to sort 10 arrays of size 3,000,000 then the algorithm would double that size and you get 6,000,000 as a result. If you run the program again and you have a slightly higher system load because of some background processes it might take 10.1 seconds to sort an array of size 3,000,000 and hence you get this as a result. Cheers, Burkhard |
Re: A4,1(b) by jzho020 (jzho020) on October 17, 2003, 2:54 pm | ||||
Burkhard wrote:
I guess 13,107,200 is wrong, I think it should be 1,310,720 . I ran my program in the lab. Ok, this time , I run my program on a machine which has a 0.885GHz processor . I got n is 1638400 and it takes 10.556 sec to sort 10 diffenent arrays with size 1,638,400 .And my final result is : for size n quickSort 1070 ms heapSort 3351 ms mergeSort 2596 ms shellSort 2975 ms Do you think the result is OK or not? One more thing. If I run my program on a machine in the lab(those new Compaq computers) which has a 2.5GHz processor,then I got n is 6,553,600 and the time is 14.718sec , but it gives me OUT OF MEMORY EXCEPTION when my program try to mesure the run time of those algorithms. |
by hotshotec (lchi026) on October 17, 2003, 5:02 pm |
I've run mine in the new Compaq computers in the labs and for n i got 6553600 also, the time is 1100 ms [quicksort] |
by asheltie (ajoh064) on October 17, 2003, 9:00 pm |
i must have misunderstood the assignment question. |
by christian (celv004) on October 18, 2003, 1:13 pm | ||
asheltie wrote:
and [quote:9fca9fc84e] quickSort 1070 ms |
by jbal034 (jbal034) on October 18, 2003, 2:39 pm |
my 1.99 ghz with 528MB ram seems to be have some difficulties running these algorithms... |
by christian (celv004) on October 18, 2003, 2:45 pm | ||
jbal034 wrote:
Sounds strange, I have 900mhz and 512 mb ram and I have no problems with this.... Christian |
by asheltie (ajoh064) on October 18, 2003, 5:27 pm |
i understand now, |
by frazzle (dazh001) on October 19, 2003, 11:43 pm |
I have a pentium 4 1.5ghz with 128mb ram and i get n = 3276800 with the time taken being 11042msecs. I send a different array of size n each time i call quick sort. |
by seraphgg (sgao003) on October 21, 2003, 3:05 pm |
I working b(i) in the stage 2/3 lab, and I got array size 1,638,400 its took 11.297 sec. (PS)that result for the quick sort. |
by The Fri (gmar086) on October 21, 2003, 3:14 pm |
I have a Pentium 4 2.4C with 512 RAM |
Model answers for test? by A1kmm (amil082) on October 16, 2003, 12:47 pm |
Are there any model answers for the terms test anywhere(I can't find them). |
by fever691 (yyan050) on October 16, 2003, 1:15 pm |
yep, there's answers under the test scripts...last time I check they were there and in the 220 box... |
by asheltie (ajoh064) on October 16, 2003, 10:58 pm |
this is consistent with "students marking assignments". |
by asheltie (ajoh064) on October 17, 2003, 9:22 pm |
and dittto......... |
by Mark Wilson (mwil211) on October 20, 2003, 12:38 pm |
I
find the first post by asheltie to be offensive. What is humorous or
indeed wrong about my posts in the 320 forum? Come and say it face to
face if you have a complaint. Don't waste our time otherwise. |
by Mark Wilson (mwil211) on October 20, 2003, 12:44 pm |
One more point: for 2(a) the numbering system starts at 0 not 1, hence the -0.5 marks. I know this is a bit trivial but (for the first time) this semester I have asked a few questions that see whether anyone is paying attention to what I say and write. It was consistently marked that way for everyone. |
why doesn't insertion sort do.............. by asheltie (ajoh064) on October 16, 2003, 10:51 pm |
why
doesn't the insertion sort do a logarithmic check on the sorted side
for a place to put the unsorted item? like divide the sorted in 2 and
find if it needs to go in the left or the right side?? |
by Jono (jteu004) on October 17, 2003, 9:06 am |
This is the exact example I did in tutorials this week - bet you wish you didn't skip them now, eh! |
by asheltie (ajoh064) on October 17, 2003, 12:12 pm |
hmmm, |
A4 Q1(b) NOT SURE THE ANSWER by jzho020 (jzho020) on October 17, 2003, 11:45 am |
In Q1 (b), for n = 1638400 , I got the result as below: |
test marks are out by byan013 (byan013) on October 17, 2003, 12:03 pm |
hi everyone the test papers are in basement math/physics building now |
by DC (jli030) on October 17, 2003, 12:36 pm |
I failed.. |
by zbao002 (zbao002) on October 17, 2003, 2:17 pm |
I got about half out of full marks... |
by byan013 (byan013) on October 17, 2003, 2:32 pm |
me too |
by pump (jbai034) on October 17, 2003, 3:50 pm |
anyway, i heard the average mark is around 29/60 |
by byan013 (byan013) on October 19, 2003, 8:21 pm |
oh ~~~ |
by tmevo6 (cwon093) on October 21, 2003, 7:54 pm |
[quote:ca0032d303] |
by zbao002 (zbao002) on October 21, 2003, 8:55 pm | ||
tmevo6 wrote:
I think 280 is easier than 220 |
by The Fri (gmar086) on October 21, 2003, 10:48 pm |
I
loved 280, it was a great paper, they offer prizes too, xbox was the
top prize, I managed to get a wireless keyboard and mouse so im sweet :D |
Question 1(b): Important note by Burkhard (bwue001) on October 17, 2003, 12:52 pm |
> For array size n/10, your program gives the result over 700 s for |
Ass3 sample solution and slides for section 4 ... by Burkhard (bwue001) on October 17, 2003, 9:17 pm |
... are now online. |
A4 Q. 1b (iii) by jrub001 (jrub001) on October 18, 2003, 10:03 am |
Whats
the story for differing values of n when running the algorithms and
then working out the value for 10n. For example, when I time the
algorithms at home (900 MHz processor) I get a value of n = 1638400,
however Burkhard has said an n value of 1638400 would be rare so I
doubt I will get this value if I ran my program in the labs. So would
my calculations for 10n be incorrect if I used this value because they
won't match up to times I would get on lab computers. |
Re: A4 Q. 1b (iii) by christian (celv004) on October 18, 2003, 2:47 pm | ||
jrub001 wrote:
Why don't you just calculate your 10n estimate based on the results your program gets whenever and wherever it is run? Christian |
Re: A4 Q. 1b (iii) by Burkhard (bwue001) on October 21, 2003, 6:51 pm | ||
jrub001 wrote:
The purpose of the exercise is that you demonstrate that you are able to estimate running times from a number of measurements. The markers will look at your measurements and will check whether your estimate makes sense. For example, if you estimated running times for 10n is similar to your measurement for n than it's obvious that you must have made a mistake in your calculation. Cheers, Burkhard |
by chsi021 (chsi021) on October 21, 2003, 7:33 pm |
So
does that mean markers are actually going to run all of our programs to
see our actual result then compare it to our estimate? |
by Burkhard (bwue001) on October 21, 2003, 7:36 pm | ||
chsi021 wrote:
If you do your estimation then you also have to show the values you used for the estimation. Otherwise the marker can't give you any points because it's not clear whether you invented or computed the values. So you definitely have to put the values output by your programs nto your assignment answer. Cheers, Burkhard |
by chsi021 (chsi021) on October 21, 2003, 7:39 pm |
Now that makes perfect sense! :-) |
by fez (jbro179) on October 22, 2003, 10:48 am |
Im going to use the values you provided in the table on the assignment printout, ok Burkhard? |
by Burkhard (bwue001) on October 22, 2003, 2:06 pm | ||
fez wrote:
Please use your own values - this will also help you to think about whether your measurements make sense. The only exception I accept is the etimation for the insertion sort. If you have only values for n/1000 and n/100 then it's quite difficult to get a reliable result for 10n and you can use instead the 3 values shown in the handout. Cheers, Burkhard |
the case comparison by cko011 (cko011) on October 18, 2003, 3:00 pm |
hi Burkhard, can u please post the comparison of different sorting u've taught? the list that u wrote on the board that day, with average case, worst case, best case. Thanks |
Re: the case comparison by Burkhard (bwue001) on October 21, 2003, 6:57 pm | ||
cko011 wrote:
I'm pretty sure that all the information is contained in the course book - please have a careful look into the course book first ... that's also a great way to review the lecture :-) I will probably mention these values again in my review lecture on Friday. Cheers, Burkhard |
HeapSort Big O for n ? by zerodays (dlee064) on October 18, 2003, 3:16 pm |
in the ass4 Question 1B(ii), there was sample output of all the times. |
Re: HeapSort Big O for n ? by christian (celv004) on October 18, 2003, 5:25 pm | ||
zerodays wrote:
I think it's going to vary as we're using random numbers....you might hit the worst case for one of the algorithms and your times will seem odd compared to others.... Christian |
by zerodays (dlee064) on October 18, 2003, 5:38 pm |
yes i know, but the thing is, the heap sort is always never too big compare with the sheet output. |
by asheltie (ajoh064) on October 18, 2003, 8:22 pm |
This is assuming you're creating random arrays 10 times per sort, and neither of us has touched the sort() methods, |
insertionSort by pump (jbai034) on October 18, 2003, 4:43 pm |
in the sample table, i realize that |
by asheltie (ajoh064) on October 18, 2003, 5:33 pm |
the problem is......... |
by pump (jbai034) on October 18, 2003, 7:03 pm | ||
asheltie wrote:
yup, finally at 6:59PM, i found my output - 671091ms came out with whole table... i don't know when exactly it came out.. but... be patient, marker. leave the partial table alone untill final result created. thank u |
by asheltie (ajoh064) on October 18, 2003, 7:42 pm |
the marker's will earn there $12 /hr with this assignment |
by edward (iche030) on October 19, 2003, 1:10 pm |
my insertion sort actually is the fastest of other 4 sorts, strange. |
by yren004 (yren004) on October 20, 2003, 4:39 pm |
thanks for ur question pump... |
by pump (jbai034) on October 20, 2003, 5:53 pm | ||
yren004 wrote:
wait!.. go to read Announcement: Question 1(b): Important note: note that last results should be omitted |
by ysakaed (yhsi014) on October 20, 2003, 6:22 pm | ||
edward wrote:
I got the same results too... insertion sort is somehow faster... anybody know why? :s |
by asheltie (ajoh064) on October 20, 2003, 6:29 pm |
r u randomising every time |
by ysakaed (yhsi014) on October 20, 2003, 6:32 pm | ||
asheltie wrote:
yes.. 10 of my arrays are randomly produced in the loop and somehow, at n/100, my insertion sort only runs 4 ms on average.. :S ??? |
by asheltie (ajoh064) on October 20, 2003, 8:00 pm |
your "n" may be much smaller than it should be? |
by ysakaed (yhsi014) on October 20, 2003, 8:11 pm | ||
asheltie wrote:
my n is 6553600... while others work fine except insertion sort.. this is weird.. =_= |
by Burkhard (bwue001) on October 21, 2003, 7:13 pm | ||||
ysakaed wrote:
I suspect that you use a random array in the beginning but that you don't reinitialise it before running each sorting algorithm. In this case it would be sorted after performing Quicksort and insertion sort would run in O(n) rather than O(n^2). Please have another look at your code. Cheers, Burkhard |
by edward (iche030) on October 22, 2003, 9:49 am |
reinitialise? |
by edward (iche030) on October 22, 2003, 9:51 am |
i doing array = new int[...] again. |
by knack (pduf006) on October 22, 2003, 12:43 pm |
you don't have to do new int[..] again |
by asheltie (ajoh064) on October 22, 2003, 3:05 pm | ||||
ysakaed wrote:
he/she is already doing that, at least i thought the above reply meant that?? i think you do have to say new int[] ........, at least for every new sorting algo you use - else the array will be n size even when you only fill it with n/1000 numbers ??? there's sumthing really wrong - did you play with the sorting code at all ?? |
by edward (iche030) on October 22, 2003, 8:49 pm |
i know what went wrong |
by knack (pduf006) on October 22, 2003, 10:41 pm |
uhm.. i thought the array was supposed to be random, not reverse order |
Q1.b.i by twirl (mlow026) on October 18, 2003, 5:55 pm |
On the handout it doesn't say what the arrays should contain. |
by asheltie (ajoh064) on October 18, 2003, 7:44 pm |
well sumwhere i read that we should fill the array with random numbers from 1 to the size of n |
Question 1(b) by jjin008 (jjin008) on October 19, 2003, 3:36 pm |
In handout said ,finds a value n for the array size so tha sorting 10 arrays of this size........, what's the 10 arrays mean?? In one array there is 10 number, or there is ten arrays to be sorting. and How can find the value n?? what is the n meaning?? |
by asheltie (ajoh064) on October 19, 2003, 8:58 pm |
it means........... |
by cko011 (cko011) on October 20, 2003, 2:59 pm |
do u mean we need to write a new method to declare the 10 arrays testing in this program? |
by asheltie (ajoh064) on October 20, 2003, 6:19 pm |
not xactly, how u do it is up to u. |
by The Fri (gmar086) on October 21, 2003, 2:52 pm |
Hmm
when we time it, I thought we are timing the time it takes to "sort" 10
arrays, not the time it takes to "generate and sort" 10 arrays,
although will there be much of a time difference? |
by The Fri (gmar086) on October 21, 2003, 3:23 pm |
Upon closer inspection, it looks like we have to measure the time it takes to "generate and sort" 10 DIFFERENT arrays. |
help with Q1b(i) by jlin093 (jlin093) on October 19, 2003, 6:33 pm |
My application is something like: |
by asheltie (ajoh064) on October 19, 2003, 8:54 pm |
that's about right !! |
Q2.a.i. Intertwined? by twirl (mlow026) on October 19, 2003, 9:35 pm |
"performing binary partition steps and interpolation steps" |
by pump (jbai034) on October 20, 2003, 12:37 pm |
it can choose to use whether binary or interpolation search according to how good the array distributed. |
by Blah (zshi005) on October 20, 2003, 11:23 pm |
Is there any critiria on how good the array is distributed? |
by Burkhard (bwue001) on October 21, 2003, 7:19 pm | ||
pump wrote:
No, it means you use alternately binary steps and interpolation steps. Say you start with a binary step, ie. in the first iteration the array will halve. In the next iteration you will use an interpolation step. In the next iteration again a binary step and so on. The reason for doing this is that the interpolation search can be O(n) in the worst case. The interwined search doesn't halve this disadvantage since every second step is a binary step the - i.e. array will at least halve in every second step ... anyway, you get the idea and I don't want to tell you the whole solution for part (iii) of the question :-) Cheers, Burkhard |
table format by cko011 (cko011) on October 19, 2003, 11:31 pm |
is there anyone know how to make the table format more general? coz I was so annoyed of the format of the table changed while cahnging different n to test..... |
by jbal034 (jbal034) on October 20, 2003, 10:54 am |
after playing around for a while with the methods given and System.out.println() 's i got the table. |
by chsi021 (chsi021) on October 20, 2003, 9:05 pm |
I found the methods provided in the source code quite useful for populating tables... ( those printLine, or printString whatever can't recall now). |
QUESTION FROM 1 B (I) by jlin093 (jlin093) on October 20, 2003, 2:47 pm |
Can someone tell me what the excat size of n? |
Re: QUESTION FROM 1 B (I) by pump (jbai034) on October 20, 2003, 3:51 pm | ||
jlin093 wrote:
not have to be that bad, the size n is already in the sample table in assignment sheet [quote:cde6173d12] why do we need to pass 10 arrays? ONLY one array is enough, |
by yren004 (yren004) on October 20, 2003, 4:29 pm |
are u really a SB(short for something)? |
by jlin093 (jlin093) on October 21, 2003, 10:07 am | ||
yren004 wrote:
I m happy to receive any suggestions and help from ur guys. BUT I do not want to hear something that makes me unhappy from someone how is obersivously sexually frustrated and gets comfort from spreading bad comments on this forum. For those people who do really want to show their intelligence up and do not want to share or distribute any things with other people at this forum. Please do not be intimidated by a smart ass. |
by SamD (sdan017) on October 21, 2003, 1:19 pm |
Hey - did you actually sort out your confusion? Let me know if you want me to try and clarify it all for you - but I wont do that if you're all sorted :P |
by jlin093 (jlin093) on October 21, 2003, 2:50 pm |
not yet. give me some suggestions, plz. |
by SamD (sdan017) on October 21, 2003, 3:05 pm |
Okay, firstly there is no exact size of n. |
by pump (jbai034) on October 21, 2003, 3:48 pm | ||
SamD wrote:
i argue the point of above paragraph the average time is not (result/10), however, it opposes "best" and "worst" case of 5 sorting algorithms, say average case of quick sort is O(nlogn), but the worst is O(n^2) am i right? |
by SamD (sdan017) on October 21, 2003, 3:55 pm |
Well, you are meant to get "the average time it takes to sort 10 arrays of random integers". I put all my times altogether into result and then divide that by 10 to get the average. If you have another way of working out the average time, thats cool. But yeah, that was just my plan of attack. |
by pump (jbai034) on October 21, 2003, 4:05 pm |
maybe u r right... |
by seraphgg (sgao003) on October 21, 2003, 4:12 pm | ||
SamD wrote:
If there has no exactly value of n, as your says we should still got the same n if we working at same computer,I was wandering anyone working on the compsci lab 2/3 stage has n equal 1.638.400 ?? |
by Burkhard (bwue001) on October 21, 2003, 7:29 pm | ||
yren004 wrote:
Any demeaning comments in this forum are regarded as offensive and are unacceptable. I recommend you to apologise. Otherwise we might have to withdraw your email and access privileges. Cheers, Burkhard |
by yren004 (yren004) on October 21, 2003, 7:56 pm |
Sorry about what i said. |
by christian (celv004) on October 21, 2003, 11:06 pm | ||
SamD wrote:
Hi Sam! I did it the same way as you're describing here, but I think maybe it's a bit wrong as we according to the asg are supposed to find the average time it takes to sort 10 arrays of size n, and by this method you and I are using we're actually calculating the average time to sort one array of size n..... Do you have any comment on this, I'd like to hear it. Christian |
by pump (jbai034) on October 22, 2003, 1:09 pm | ||||
christian wrote:
i think sam is right... actually if u did 10 array rather than 1, u will find the average time is around 10~25 second, really different from the figures in sample table. isn't it~~~~~ |
by Burkhard (bwue001) on October 22, 2003, 2:15 pm | ||
SamD wrote:
Yes, that's exactly what you should do. There is no point to worry about the worst case since the chance to get a random array with O(n^2) complexity is microscopic small. For an array of size n there are n! permutations, i.e for n=1000000 there are 1000000! differently ordered arrays - so you can see that the chance to get and array where the pivot is always the smallest or the largest element is close to zero. Cheers, Burkhard |
by The Fri (gmar086) on October 22, 2003, 3:28 pm |
Err.....Are we talking about b) i) or b) ii) here? |
by Burkhard (bwue001) on October 23, 2003, 1:47 pm |
[quote:248ffef7c6="The Fri"] Err.....Are we talking about b) i) or b) ii) here? |
server is down by david_auckla (jche131) on October 20, 2003, 6:03 pm |
i cant download source code from compsci220 website. who knows whats goning on there? also compsci210 is down as well |
sorry by david_auckla (jche131) on October 20, 2003, 6:03 pm |
cant* :P |
by zbao002 (zbao002) on October 20, 2003, 8:12 pm |
It doesnt work even in the lab !!! |
by byan013 (byan013) on October 20, 2003, 8:29 pm |
i hate this situation... |
by pump (jbai034) on October 20, 2003, 8:37 pm |
not only 220 or 210 |
About interpolation search... by Blah (zshi005) on October 21, 2003, 12:35 am |
My interpolation search consumes greater time than binary search for both evenly and badly distributed array in most cases. But it should outperform binary search for evenly distributed array right? Just wondering anyone has the same problem. I think I implements the algorithm properly and they both gives the correct answer. |
by mong (zmen001) on October 21, 2003, 10:27 am |
hoho..the same thing here...I think because the computation of Next value is quite complex, and it takes more time than binary.But it makes interpolation useless, right?? can some one give some ideas?? |
Re: About interpolation search... by jzho020 (jzho020) on October 21, 2003, 10:34 am | ||
Blah wrote:
Where did you get the algorithm of interpolation search? Is it in the book or ...? I can't find it. I don' t know what the algorithm is , so how can I implement it? |
by Jono (jteu004) on October 21, 2003, 12:11 pm | ||
mong wrote:
If the objects you are sorting are not easily comparable, then the time for the 'next' computation can become insignificant. I can't think of a good example off the top of my head, but I know this occurs in practice. Jono. |
Re: About interpolation search... by SamD (sdan017) on October 21, 2003, 1:16 pm | ||
jzho020 wrote:
Have a look in the green book - in the section about Binary Search. There's definitely a section in there called Interpolation Search - near page 85 or something like that... |
by Blah (zshi005) on October 21, 2003, 4:23 pm |
Oh I have figured out the problem. It is because my calculation rounded up with the int part, not the actually value. Like (8/9)*9 gives me 0 instead of 8. How silly... |
by Burkhard (bwue001) on October 21, 2003, 7:34 pm | ||
mong wrote:
What array size do you take? Try something reasonable big (but not too big since otherwise n^2 might fall outside the range of valud integers). On my old computer (600 MHz) interpolation search is faster for n>100 and evenly distributed values. Cheers, Burkhard |
by christian (celv004) on October 21, 2003, 11:14 pm | ||||
Burkhard wrote:
I experience this same problem for all n from 10 to 1000 (have not tried higher), and I'd like some hints of how to solve the problem. I saw one person wrote something about divisions rounding to zero and that causing extra time. Is that something I have to consider? Christian |
by Blah (zshi005) on October 21, 2003, 11:43 pm |
For instance, (8/9)*9 gives you 0 instead of 8. So you ended up with low + 0 which starts with the very first element, not the desired 8th element. So it will be even slower than binary search. I hope your problem is caused by that. My one works fine now... |
by fshe010 (fshe010) on October 21, 2003, 11:55 pm |
hi
guys..i got same problem eveni tried n <100 liks lecture said..but
my interpolation still take much long time than binary sorting.. |
by christian (celv004) on October 22, 2003, 1:32 pm | ||
Blah wrote:
Ok, I think this is my problem too. But how did you make sure it doesn't round down any more? Christian |
by Blah (zshi005) on October 22, 2003, 2:12 pm |
You do the multiply first, then do the divide secondly. |
by Burkhard (bwue001) on October 22, 2003, 2:24 pm | ||
christian wrote:
If you don't use the ceiling function (round to the next highest integer)used in the lecture handout than your algorithm might take forever. The ceiling function is indicated by "square brackets with the bottom bit missing" and is defined as __.....__ |..........| |....A....| = the smallest integer greater or equal to A [Please ignore the dots in the expression above. They were necessary to format the expression] In Java you can write this expression as (int) Math.ceil(A); Please have a look in the java API for more info :-) [url] http://www.cs.auckland.ac.nz/JavaCache/java1.3/api/[/url] Cheers, Burkhard |
by asheltie (ajoh064) on October 22, 2003, 8:40 pm |
weird - |
by knack (pduf006) on October 22, 2003, 10:43 pm |
maybe it just seems to never stop b/c printing all those numbers takes a long time.. try it with a really small value of n and see if it stops |
by christian (celv004) on October 23, 2003, 12:27 am | ||
asheltie wrote:
I think it's because the interpolation method is called 1000,000 times: [code:1:41c237df88] for(int j=0;j<k;j++){ try{ interpolationSearch(a,key); } catch (ItemNotFoundException e){ System.out.println("Key not found"); }[/code:1:41c237df88] as k=1000,000 and since you System.out.println() every time, it takes a long long time....if you don't s.o.p it goes a lot faster.... And about that Math.ceil - I already tried that and it doesn't seem to help...it still takes a lot more time than the binary search... Christian |
by asheltie (ajoh064) on October 23, 2003, 8:58 am |
i understand why now |
by Burkhard (bwue001) on October 23, 2003, 1:38 pm | ||
christian wrote:
This was necessary since the algorithm is so fast hat we don't get any reliable measurements for searching an array only once. [quote:a554734fd0] [...] I tried this already but it still doesn't work [...] |
Q2b graph table by shurik (apry004) on October 21, 2003, 10:39 am |
Do we need to draw a table while it executes allalgoritms or when it would finish executing them all |
by The Fri (gmar086) on October 21, 2003, 4:59 pm |
Does it really matter? as long as it pops out a table that looks "reasonable" I think it should be fine. |
Interpolation search silde error? by cko011 (cko011) on October 22, 2003, 1:08 pm |
is
the lecture slide page 18, which about Interpolation search, got some
error? the formula in slide 16 suppose is next = low + ..... |
Re: Interpolation search silde error? by Burkhard (bwue001) on October 22, 2003, 2:09 pm | ||
cko011 wrote:
There were unfortunately a couple of errors on the initial version of the slides. Please see the lecture web page for a listing of the errors and the corrected slides. [url] http://www.cs.auckland.ac.nz/compsci220s2c/lectures/[/url] Cheers, Burkhard |
Additional office hours by Burkhard (bwue001) on October 22, 2003, 2:26 pm |
I will have additional office hours on: |
Just a question on Q1)b)iii) by stsu010 (stsu010) on October 22, 2003, 3:49 pm |
Is the value for n random?? And do we create the elements for a[] random as well and how many elements do we need to create?? |
by asheltie (ajoh064) on October 23, 2003, 10:14 am |
do u mean Quest. 1-b-ii ???? |
long by kahn003 (kahn003) on October 22, 2003, 7:55 pm |
i wrote: |
by asheltie (ajoh064) on October 22, 2003, 8:31 pm |
it seems like you could be re-initialising the ms variable @ every loop |
format for Q1 b iii)? by hrh (rhua009) on October 23, 2003, 2:21 pm |
do we need to produce the detail calculations? |
Re: format for Q1 b iii)? by Burkhard (bwue001) on October 23, 2003, 3:13 pm | ||
hrh wrote:
You should show your calculation and explain how you derived your estimation. Cheers, Burkhard |
Interpolation-Binary-Intertwined -weirdo values! by mram021 (mram021) on October 23, 2003, 2:55 pm |
Hey! |
by mram021 (mram021) on October 23, 2003, 3:06 pm |
Also forgot that my interpolation runs better for badly arranged values than uniform values . Gofigure! |
Re: Interpolation-Binary-Intertwined -weirdo values! by Burkhard (bwue001) on October 23, 2003, 3:21 pm | ||
mram021 wrote:
You should do alternately binary STEPS and interpolation STEPS, i.e. you compute the next point alternately by using an interpolation and by just taking the midpoint. Since every second step is a binary step you at least halve the array every two steps and you therefore avoid the worst case of the interpolation search. Sorry, sounds like there is something wrong with your implementation. Hope that helps, Burkhard |
by cko011 (cko011) on October 23, 2003, 3:50 pm |
is the InterwinedSearch suppose to be faster or slower than the interpolationSearch? coz my one is, Interpolation Search is faster than binary, and Interwine faster than both 2 of them, is it normal or wrong? |
by mram021 (mram021) on October 23, 2003, 4:10 pm |
it finally works . |
by Burkhard (bwue001) on October 24, 2003, 10:21 am | ||
mram021 wrote:
Sure, you are supposed to explain how you estimated the average and worst case time complexity. If you don't show your measuremenst then the marker can't verify your explanation and then the marker can't give you any marks which would be a pity. Of course you can also explain your estimation using mathematical arguments. Cheers, Burkhard |
2a by VAhuja (vahu002) on October 24, 2003, 4:17 pm |
For evenly distributed values:- |
About Q1b(iii) by Blah (zshi005) on October 23, 2003, 4:07 pm |
Anyone knows how to use the results from (ii) to estimate the time it would take to perform the five sorting algorithm? It cannot be like simply multipling the result by some constant right? |
Questions about memory by Cannabis (chua031) on October 23, 2003, 4:09 pm |
well i am doing question2 in the lab |
by knack (pduf006) on October 23, 2003, 5:58 pm |
well my random numbers are Math.random()*Integer.MAXVALUE |
by Cannabis (chua031) on October 23, 2003, 8:04 pm |
i just think of my code n i found that |
Q2b by kahn003 (kahn003) on October 23, 2003, 5:20 pm |
value of S?? |
Re: Q2b by Burkhard (bwue001) on October 24, 2003, 10:25 am | ||
kahn003 wrote:
The user will input an arbitrary integer S and the algorithm will determine whether there are two numbers in the array such that their sum is S. You should analyse the algorithm (without implementing it) - the value of S is not important for the analysis of the time complexity (average and worst case). Cheers, Burkhard |
Q1(ii) by snow (jpan022) on October 23, 2003, 6:42 pm |
Do we have to use n exactly eauals 6553600 to do this question?Can I use smaller one? Caz when I use 6553600 the window will suddently disappear after about 20 minutes ,but if I use smaller n it will show the table . So can I use smaller n for this question? |
Re: Q1(ii) by pump (jbai034) on October 23, 2003, 6:47 pm | ||
snow wrote:
do it in the lab on the ground level, you can get exact 6553600. +^%!@#$%^&* |
Re: Q1(ii) by snow (jpan022) on October 23, 2003, 6:52 pm | ||||
So,do you know the reason why the dos window disappear?
|
by pump (jbai034) on October 23, 2003, 6:58 pm |
easy... run it in the lab on ground floor your dos window will not close because of n=6553600 |
Re: Q1(ii) by Burkhard (bwue001) on October 24, 2003, 10:28 am | ||
snow wrote:
The value you get for n will depend on the speed of your computer. Please see my previous comments in the forum for a detailed discussion of this issue. Cheers, Burkhard |
really strange thing happen~~~ by hrh (rhua009) on October 23, 2003, 7:24 pm |
int high=a.length-1; |
question 2, asst 4 by Boris (bmeg002) on October 23, 2003, 7:47 pm |
Hi,
I was just wondering what the return value in each of the methods we
are writing should be... I know it's an int, but does it want the
position the key was found at, or the key itself, to double check it
was there or does it want the number of comparisons it took to find the
key. |
by pump (jbai034) on October 23, 2003, 8:08 pm |
return anything u like, but ensure the key is really found(or throw exception), then you can time the search procedure(only) |
by The Fri (gmar086) on October 23, 2003, 9:13 pm |
To be "Politically Correct" I think you should be returning the index of where the key resides. |
exception question by david_auckla (jche131) on October 23, 2003, 8:19 pm |
how to throw a exception when key has not been found. |
by The Fri (gmar086) on October 23, 2003, 9:11 pm |
If you have a look at the comments, your answer is right there. |
by david_auckla (jche131) on October 23, 2003, 11:50 pm |
thax 4 ur reply, i knew wat u mean , but my question is , the sorting mothed atually return an int. but how to return a exception which need int value. |
by david_auckla (jche131) on October 24, 2003, 12:18 am |
how stupid i am. haha, i got it now :P |
by david (jyue005) on October 24, 2003, 1:16 am |
how? |
by knack (pduf006) on October 24, 2003, 6:54 am |
you don't *return* an exception, you just throw it |
Solutions for the exercise sheets 7,8,10 and 11 ... by Burkhard (bwue001) on October 24, 2003, 10:15 am |
... are now online. |
Q2 b) by hrh (rhua009) on October 24, 2003, 12:26 pm |
anyone know that whether we need to give the time complexity of all cases? or we just give the average case time complexity? |
Re: Q2 b) by Burkhard (bwue001) on October 24, 2003, 1:17 pm | ||
hrh wrote:
If it only says "time complexity" then this means the time complexity (upper bound) for all executions of the algorithm which is the complexity for the worst case. By the way, the worst case time complexity is the same as for the average case. [quote:c6faba7960] also, "the first index k on the right of i" does it includes i itself? thanks~~ |
Interwined search cheacking by Felix (kcho089) on October 24, 2003, 12:29 pm |
Can anyone tell me if this is normal... |
by knack (pduf006) on October 24, 2003, 2:52 pm |
well yeah it should.. sounds like its not doing any binary |
Q2(b)(iii) -together or separately by mram021 (mram021) on October 24, 2003, 3:08 pm |
Hi! |
Re: Q2(b)(iii) -together or separately by Burkhard (bwue001) on October 24, 2003, 4:11 pm | ||
mram021 wrote:
Please estimate the time for each algorithm, i.e. your answers should have 5 estimates, one for each of the 5 sorting algorithms. Cheers, Burkhard |
Q2a by VAhuja (vahu002) on October 24, 2003, 4:23 pm |
For evenly distributed values:- |
by GonePostal (ssto040) on October 25, 2003, 12:08 am |
Thats what I got, but that doesn't necessarily make it right... |
drop box is down!!!! by yche276 (yche276) on October 24, 2003, 5:49 pm |
someone help!!!!!!!!!!!!! |
by yche276 (yche276) on October 24, 2003, 5:54 pm |
it works now! |
slide removed? by cko011 (cko011) on October 27, 2003, 11:21 am |
hi Burkard, can u upload the slide of Section 4 -Efficiency Sorting, on the site again? coz it seems removed when clicking in |
Re: slide removed? by Burkhard (bwue001) on October 29, 2003, 3:30 pm | ||
cko011 wrote:
I can't find anything wrong with it. Please try to refresh the page - I changed some of the link previously and maybe there is an old version of the web page in your cache. Cheers, Burkhard |
by cko011 (cko011) on October 30, 2003, 3:20 pm |
I can open the slide since I wait 3 miutes on it, thanks |
ass04 ? by fshe010 (fshe010) on October 27, 2003, 8:14 pm |
does everyone got the assi04 mark? |
by byan013 (byan013) on October 27, 2003, 8:33 pm |
no i do not have A4 mark and i still do not have A3 mark , what about you?? |
by Bigbear (hyan052) on October 28, 2003, 4:28 pm |
I don't have the A3 mark back either :-( |
by zerodays (dlee064) on October 28, 2003, 5:04 pm |
same i didnt even get ass3 mark back |
by shurik (apry004) on October 28, 2003, 5:13 pm |
I got it today i think ass3 b back by end of this week. |
by christian (celv004) on October 28, 2003, 11:18 pm | ||
byan013 wrote:
I got my ass3 mark today.... Christian |
Assignment 4 sample solution ... by Burkhard (bwue001) on October 30, 2003, 1:09 pm |
is now online: |
ass03 marking by jbal034 (jbal034) on October 30, 2003, 3:53 pm |
i
think i got marks got deducted for doing things like
this:[quote:16afbc7fa1] result must be written in the simplest
representation |
Where can I find exam answers? by twirl (mlow026) on November 3, 2003, 4:32 pm |
Where can I find answers to the 2001,2002SC and 2003FT exams? |
Re: Where can I find exam answers? by kieron (sjun012) on November 5, 2003, 12:03 pm |
oh my mistake haha |
help me by fangwen27 (fliu028) on November 4, 2003, 10:43 am |
hello, |
by asheltie (ajoh064) on November 5, 2003, 9:11 am |
go and see a tutor - quick ! |
Exam Information by stsu010 (stsu010) on November 4, 2003, 3:58 pm |
Does anyone know how many marks is for each part of the exam?? |
by chsi021 (chsi021) on November 4, 2003, 5:26 pm |
all the information is given in the last section of the handouts.. |
code in final exam ?? by byan013 (byan013) on November 5, 2003, 12:50 pm |
does the final exam have code for us to write ?? |
Coursebook page 127 by The Fri (gmar086) on November 5, 2003, 6:25 pm |
on
the bottom table, where it says 5n + 8n^2 + 100n^3 = O(n^4) I thought
this was wrong, and should be O(n^3) and Mark responded with the
following: |
Re: Coursebook page 127 by christian (celv004) on November 5, 2003, 7:30 pm |
[quote:39adfacef1="The
Fri"] on the bottom table, where it says 5n + 8n^2 + 100n^3 = O(n^4) I
thought this was wrong, and should be O(n^3) and Mark responded with
the following: |
Passs Exams solutions by Felix (kcho089) on November 5, 2003, 6:33 pm |
Can
anyone tell me where to get solutions for pass yr? The pdf they got on
the site r very limited and some of them don't even have any solutions.
Anyone? Lecturers?? Tutors?? |
Re: Passs Exams solutions by christian (celv004) on November 5, 2003, 7:26 pm | ||
Felix wrote:
We also would like these...in particular city 2002 and tamaki 2003 exams... EILEN and christian |
2003SC Mid-term Test by zbao002 (zbao002) on November 5, 2003, 9:08 pm |
The last question says: |
by asheltie (ajoh064) on November 6, 2003, 9:10 am |
good questions |
by jwel027 (jwel027) on November 6, 2003, 10:50 am |
I think this question is about equivalence classes.[quote:bf2e164612="the book"] For a DFA and any q in Q define the DFA M(q) = (Q, sigma, delta, s, F), that is, s is replaced with q in M(q). We say that two states p and q etc... |
Assignment answers... by zbao002 (zbao002) on November 5, 2003, 9:50 pm |
Where can I find the answers to the assignment 1&2? Thanks! |
not sure about DECISION TREE by lance (yhua059) on November 6, 2003, 12:38 am |
could anyone make sure: |
Convert NFA to DFA by jzho020 (jzho020) on November 6, 2003, 12:35 pm |
when we convert NFA to DFA , do we always need to show the dead state or not? coz I saw some of them do , some of them don't. Getting confused. |
by asheltie (ajoh064) on November 6, 2003, 1:32 pm |
-let's assume the alphabet is {0,1} for any DFA |
by jzho020 (jzho020) on November 6, 2003, 2:21 pm | ||
asheltie wrote:
I don't think so. Please check 2003 midterm test Question 5 (c) and (d) |
by SamD (sdan017) on November 6, 2003, 3:12 pm |
If
I were u I'd cover my ass and put it in if there is a place that it
fits (which would only be if there's a state that doesn't have one of
the inputs coming out of it). |
by jzho020 (jzho020) on November 6, 2003, 3:23 pm | ||
SamD wrote:
cheers. One more stupid question. How could I change my name which appears on the forum? My current name is jzho020, I would like to change it into say "blabla" whatever, how could I do that? I tried to change it in profile. But it doesn't work (I think it should work), dont know why |
by SamD (sdan017) on November 6, 2003, 3:29 pm |
Hi |
by jzho020 (jzho020) on November 6, 2003, 3:37 pm | ||
SamD wrote:
I did have netlogin running, still doesnt work. Probably it's too late to do it. I don't know. Good luck, Guys! |
by asheltie (ajoh064) on November 6, 2003, 10:37 pm |
i've taken a look at the mid-term test |
by asheltie (ajoh064) on November 6, 2003, 10:40 pm |
forums on the blink again |
do we need to write java code in the exam ? by YA (syan029) on November 6, 2003, 5:06 pm |
as title ... |
FT2002 Q4e by pete (pmir001) on November 6, 2003, 5:38 pm |
Why does it say NONE? wouldn't for example 5->3 be a cross arc, since seen(5) & fin(5) are greater than seen(3) & fin(3) ? |
by jbal034 (jbal034) on November 7, 2003, 4:49 am |
this reminded me of tutorial 3 and the EXACT same question is done there. so go have a look in that but yes you are right (5,3) is a cross arc. |
Formulas? by gche043 (gche043) on November 6, 2003, 5:56 pm |
will we be given formulas that we might need? |
Re: Formulas? by shurik (apry004) on November 6, 2003, 6:13 pm |
dont think so |
by gche043 (gche043) on November 6, 2003, 6:53 pm |
dang.... |
by fez (jbro179) on November 6, 2003, 9:13 pm |
Anyone else screwed for Burkhards part of the exam? |
by stsu010 (stsu010) on November 7, 2003, 12:46 am |
YES, ME. |
Is this a complete tree? help plz by david (jyue005) on November 6, 2003, 6:04 pm |
Is this a complete tree? |
Re: Is this a complete tree? help plz by shurik (apry004) on November 6, 2003, 6:16 pm |
i'm not really sure but here it goes |
by david (jyue005) on November 6, 2003, 6:32 pm |
Still confused... -_-; |
by gche043 (gche043) on November 6, 2003, 6:58 pm |
i think wat he/she is trying to say is that n-ary tree, which n = max no. of children a tree can have. |
by Robert (rfra047) on November 6, 2003, 7:00 pm |
no
it is not a complete tree. A complete tree is filled from left to right
so that there has to be a left child of a node before there is a right
and the height of the left subtree is either equal to or only 1 greater
than the right sub tree. |
Exam....Where?? by kahn003 (kahn003) on November 7, 2003, 8:22 am |
could not go to the last lecture, so can anyone give which class I should go to??? |
Re: Exam....Where?? by christian (celv004) on November 7, 2003, 9:46 am | ||
kahn003 wrote:
The exam room locations are posted on the window to the general library, and some other places on campus. |
LIGHTS OFF PLT1 by zerodays (dlee064) on November 7, 2003, 5:50 pm |
more than 3 times ? lights WENT OFF, |
by The Fri (gmar086) on November 7, 2003, 6:47 pm |
Hmm, I dont know if it was more than 3 times, but yea they did go off. |
by zerodays (dlee064) on November 7, 2003, 7:05 pm |
im gotta say that, this exam was Extremly HARD |
by cko011 (cko011) on November 7, 2003, 7:29 pm |
I think Automata part is the easiest, it's nearly, and totally copy and paste question from the term test, but the exam is actually quite hard, especially Burkard's part, alot Telescoping inside. Mark's part is fair, some kind of revision stuff...but mostly wanna complained the time wasted on the light off, it's very annoyed, I hope it won't be happened in another room later again.coz it's very stupid! When I did that Floyd's question, nearly ruined by the light off as I forgot the step where I was in. |
by pump (jbai034) on November 10, 2003, 10:20 am |
ss |
VOTE for exam scaling people by Felix (kcho089) on November 7, 2003, 7:47 pm |
Anyone who think the exam was unfair and extremely hard?? I m the first one who raise the hand. I hope we will get scale up for the exam...... Can we actually make a poll or vote and forward to the course administrator so that we can scale up? We have no help from any of the Lecturers and tutors outside the class time and no lecturers and tutors reply to any of the students post at the forum which is unfair.... i have never felt like this before on any of my past papers, COMPSCI220 this semester was awful and unorganise. SO I SUGGEST ANYONE WHO FEEL THE SAME AS ME PLEASE MAKE A VOTE OR POLL TO THE COURSE ADMINISTRATOR TO SCALE OUR GRADE....... |
by zerodays (dlee064) on November 7, 2003, 7:56 pm |
I MUST AGREE WITH YOU FELIX. |
by fanta (jcho073) on November 7, 2003, 8:12 pm |
I 100% AGREE..... |
Re: VOTE for exam scaling people by jackhill (xhua040) on November 7, 2003, 8:18 pm | ||
Felix wrote:
|
by DC (jli030) on November 7, 2003, 8:58 pm |
The exam was really hard.. And, I was so shocked that many marks were allocated to Telescoping!!! |
by Bigfoot (ache079) on November 7, 2003, 11:26 pm |
100% Agree. It's really hard. |
compsci is running out of resource by ryan (rzha030) on November 7, 2003, 11:37 pm |
There are so many students per course. The lectures are noisy. The labs are crowded. The lecturers can't response so many students very well. |
by recah (ichi007) on November 7, 2003, 11:50 pm |
ABSOLUTLY!!!! we all demand a scale up!!!! |
by mong (zmen001) on November 8, 2003, 3:34 pm |
agree......scale up......scale up......scale up......scale up......scale up......scale up......scale up......scale up......scale up......scale up......scale up......scale up......scale up......scale up......scale up......scale up......scale up......scale up...... |
by VVTL-i (ocho004) on November 8, 2003, 5:42 pm |
I guess the somewhat unusual or biased arrangement of examined materials, and as
has said - the fact that many of the algorithm analysis questions
favoured heavily upon pre-existing knowledge with telescoping, are all
related to the sudden change of our intended lecturer for that section
(c). |
by Felix (kcho089) on November 8, 2003, 8:22 pm |
But what can we do at this stage?? Wait for the results or forward this feedback to the co-ordinator?? |
by Felix (kcho089) on November 8, 2003, 8:23 pm |
What we going to do? are we gonna sit n wait for the results or forward this feed back to the co-ordinator?? |
by Felix (kcho089) on November 8, 2003, 8:30 pm |
What we going to do? are we gonna sit n wait for the results or forward this feed back to the co-ordinator?? |
Re: VOTE for exam scaling people by Burkhard (bwue001) on November 10, 2003, 5:05 pm | ||
Felix wrote:
Hard yes, unfair no. For my part most of the question were similar to one of my exam in a previous year and students did very well in that year. [quote:87c6c0b3b4] Can we actually make a poll or vote and forward to the course administrator so that we can scale up? |
Felix wrote:
In the last lecture I talked about the exam and I strongly advised you to do the easy questions first and that there are always a few hard questions which only very few students can answer. DC wrote:
It was hard and every exam should be hard since otherwise it is impossible to differentiate between excellent, good and not-so-good students. Note that it makes no difference whether an exam is hard or easy. If it's easy the marking is stricter and the grade boundaries are higher. In fact, hard exams are much fairer because that way you can make a silly mistake and still get a good grade. Similarly there is no point asking for a scaling of the exam, because it has he same effect as choosing lower grade boundaries and as mentioned previously the grade boundaries take into account the difficulty of the exam. DC wrote:
I said there are 10 points about solving recurrence relations (i.e. telescoping) and there were 10 points about telescoping. Question 6,7,9,11 didn't require telescoping, for question 12 you only had to determine the recurrence formulas WITHOUT solving them via telescoping. Also, if you visited the lectures you should have noticed that the analysis of just about all recursive algorithms leads to recurrence relations which of course are solved in this lecture via telescoping. And I even said in the last lecture that questions about sorting and searching might intersect with some of the other topics (e.g. b"big -Oh" notation). DC wrote:
It's impossible to test everything unless we extend the exam from 2 to 4-5 hours. I also mentioned many many times that you should study everything we did in the lecture. If you "gamble" and you decide to concentrate on some topics then this is your responsibility and you should not blame the lecturers. [quote:87c6c0b3b4="VVTL-i"] I guess the somewhat unusual or biased arrangement of examined materials, and as DC[/ i] has said - the fact that many of the algorithm analysis questions favoured heavily upon pre-existing knowledge with telescoping |
by Sha (srah005) on November 9, 2003, 11:10 am |
I agree with u Guys! |
by pump (jbai034) on November 10, 2003, 10:12 am |
the following post is quoted from a 210 thread("DNS"): |
by pump (jbai034) on November 10, 2003, 10:13 am |
apiapiapi |
Agree. by navyboy (tson003) on November 10, 2003, 5:14 pm |
Of course 100% Agree. It's really hard.!!!! TOO Too hard!!!! |
by Burkhard (bwue001) on November 10, 2003, 5:17 pm | ||
Felix wrote:
Hard yes, unfair no. For my part most of the question were similar to one of my exam in a previous year and students did very well in that year. [quote:62acd10eab] Can we actually make a poll or vote and forward to the course administrator so that we can scale up? |
Felix wrote:
In the last lecture I talked about the exam and I strongly advised you to do the easy questions first and that there are always a few hard questions which only very few students can answer. DC wrote:
It was hard and every exam should be hard since otherwise it is impossible to differentiate between excellent, good and not-so-good students. Note that it makes no difference whether an exam is hard or easy. If it's easy the marking is stricter and the grade boundaries are higher. In fact, hard exams are much fairer because that way you can make a silly mistake and still get a good grade. Similarly there is no point asking for a scaling of the exam, because it has he same effect as choosing lower grade boundaries and as mentioned previously the grade boundaries take into account the difficulty of the exam. DC wrote:
I said there are 10 points about solving recurrence relations (i.e. telescoping) and there were 10 points about telescoping. Question 6,7,9,11 didn't require telescoping, for question 12 you only had to determine the recurrence formulas WITHOUT solving them via telescoping. Also, if you visited the lectures you should have noticed that the analysis of just about all recursive algorithms leads to recurrence relations which of course are solved in this lecture via telescoping. And I even said in the last lecture that questions about sorting and searching might intersect with some of the other topics (e.g. b"big-Oh" notation). DC wrote:
It's impossible to test everything unless we extend the exam from 2 to 4-5 hours. I also mentioned many many times that you should study everything we did in the lecture. If you "gamble" and you decide to concentrate on some topics then this is your responsibility and you should not blame the lecturers. [quote:62acd10eab="VVTL-i"] I guess the somewhat unusual or biased arrangement of examined materials, and as has said - the fact that many of the algorithm analysis questions favoured heavily upon pre-existing knowledge with telescoping |
by Felix (kcho089) on November 10, 2003, 11:15 am |
Then come on guys lets do the vote... |
by Burkhard (bwue001) on November 10, 2003, 12:42 pm |
[quote:69565007e9="VVTL-i"] I guess the somewhat unusual or biased arrangement of examined materials, and as has said - the fact that many of the algorithm analysis questions favoured heavily upon pre-existing knowledge with telescoping |
by pump (jbai034) on November 10, 2003, 12:57 pm |
dear me |
SCALE UP by kelkel (kyeu018) on November 10, 2003, 4:13 pm |
ABSOLUTLY AGREE |
Re: VOTE for exam scaling people by Burkhard (bwue001) on November 10, 2003, 4:54 pm | ||
Felix wrote:
Hard yes, unfair no. For my part most of the question were similar to one of my exam in a previous year and students did very well in that year. [quote:d9bb2d38f2] Can we actually make a poll or vote and forward to the course administrator so that we can scale up? |
Felix wrote:
In the last lecture I talked about the exam and I strongly advised you to do the easy questions first and that there are always a few hard questions which only very few students can answer. DC wrote:
It was hard and every exam should be hard since otherwise it is impossible to differentiate between excellent, good and not-so-good students. Note that it makes no difference whether an exam is hard or easy. If it's easy the marking is stricter and the grade boundaries are higher. In fact, hard exams are much fairer because that way you can make a silly mistake and still get a good grade. Similarly there is no point asking for a scaling of the exam, because it has he same effect as choosing lower grade boundaries and as mentioned previously the grade boundaries take into account the difficulty of the exam. DC wrote:
I said there are 10 points about solving recurrence relations (i.e. telescoping) and there were 10 points about telescoping. Question 6,7,9,11 didn't require telescoping, for question 12 you only had to determine the recurrence formulas WITHOUT solving them via telescoping. Also, if you visited the lectures you should have noticed that the analysis of just about all recursive algorithms leads to recurrence relations which of course are solved in this lecture via telescoping. And I even said in the last lecture that questions about sorting and searching might intersect with some of the other topics (e.g. b"big-Oh" notation). DC wrote:
It's impossible to test everything unless we extend the exam from 2 to 4-5 hours. I also mentioned many many times that you should study everything we did in the lecture. If you "gamble" and you decide to concentrate on some topics then this is your responsibility and you should not blame the lecturers. [quote:d9bb2d38f2="VVTL-i"] I guess the somewhat unusual or biased arrangement of examined materials, and as has said - the fact that many of the algorithm analysis questions favoured heavily upon pre-existing knowledge with telescoping |
Reply to complaints by Burkhard (bwue001) on November 10, 2003, 5:16 pm | ||
Felix wrote:
Hard yes, unfair no. For my part most of the question were similar to one of my exam in a previous year and students did very well in that year. [quote:e1d199614d] Can we actually make a poll or vote and forward to the course administrator so that we can scale up? |
Felix wrote:
In the last lecture I talked about the exam and I strongly advised you to do the easy questions first and that there are always a few hard questions which only very few students can answer. DC wrote:
It was hard and every exam should be hard since otherwise it is impossible to differentiate between excellent, good and not-so-good students. Note that it makes no difference whether an exam is hard or easy. If it's easy the marking is stricter and the grade boundaries are higher. In fact, hard exams are much fairer because that way you can make a silly mistake and still get a good grade. Similarly there is no point asking for a scaling of the exam, because it has he same effect as choosing lower grade boundaries and as mentioned previously the grade boundaries take into account the difficulty of the exam. DC wrote:
I said there are 10 points about solving recurrence relations (i.e. telescoping) and there were 10 points about telescoping. Question 6,7,9,11 didn't require telescoping, for question 12 you only had to determine the recurrence formulas WITHOUT solving them via telescoping. Also, if you visited the lectures you should have noticed that the analysis of just about all recursive algorithms leads to recurrence relations which of course are solved in this lecture via telescoping. And I even said in the last lecture that questions about sorting and searching might intersect with some of the other topics (e.g. b"big-Oh" notation). DC wrote:
It's impossible to test everything unless we extend the exam from 2 to 4-5 hours. I also mentioned many many times that you should study everything we did in the lecture. If you "gamble" and you decide to concentrate on some topics then this is your responsibility and you should not blame the lecturers. [quote:e1d199614d="VVTL-i"] I guess the somewhat unusual or biased arrangement of examined materials, and as has said - the fact that many of the algorithm analysis questions favoured heavily upon pre-existing knowledge with telescoping |
vote for scale up by kelkel (kyeu018) on November 10, 2003, 6:13 pm |
ABSOLUTLY AGREE |
by lz14 (zliu030) on November 11, 2003, 12:16 am |
The
exam is not neccaceryly hard, but I think it's too long. Personally I
spent a lot time in the graph part, they are not hard but it took a lot
of time, and when time ran short I paniced a bit rest of the way. It
would be fairer if this is a three hour exam. |
by VVTL-i (ocho004) on November 13, 2003, 11:44 pm | ||||||
Burkhard wrote:
Forgive me if my wording was ambiguous. I meant preexisting knowledge, as in if we studied well and have gone to see the lecturers and/or tutors when we need additoinal, we would be able to do very well in most of the Algorithm questions, as it is my opinion that a number questions of that section are linked or referenced to the process of recurrence and telescoping, and our well understanding of that part has therefore become even more crucial. I too agree that telescoping had been well covered during lectures and perhaps in tutorials (you may experience differently in different tutorial streams). I rate both you and Georgy as very good lecturers, so I hope you have not gotten the wrong message. I very much look forward to be lectured by either of you again in my forthcoming CompSci papers, or be it 220 if fate decides I have not done enough. On a side note, do you have news for the well-being of Georgy? Do you know if he has plans to return to lecturing students? Burkhard wrote:
My sincere apologies. Thinking back I should have done a little more research before making a statement as such. And while I did consult the past year papers of 2002 to 2003, I haven't looked at those of 2001. My apologies again to for not looking more in-depth before making such deductions. Burkhard wrote:
While I do not dispute the weighting of each section remained the same as in the past, what I was meaning to say is that due to the change of orders in covering the three topics, Algorithm Analysys had become the final topic of our paper. I believe it has traditionally been so, that the last taught, or third topic (regardless of its content), carries the most weighting in exams, due to the fact that none of topic 3 would have had the chance to be tested with the students before the exams. (However, section 1 and part of section 2 can be and have been covered in the mid-term test.) I am assuming that the weighting for each section is different (i.e. not 33.3% for each of the 3 topics). I have based this on the information provided on the opening few slides of our last set of lecture slides, that was designed to help us revise and recapture on what we have learnt on AA. Looking at it again, it says topic of Graph Algorithm, Automata Theory, and Analysis of Algorthms, are allocated with 30, 40, and 50 marks respectively. I am beginning to wonder, if perhaps your implication of " ", actually includes the weighting/percentage covered by the mid-term test too. If it is indeed so, it is a major oversight of mine (in terms of seeing the big picture), and I hope you can excuse me for such a mistake. I agree with most of what you've mentioned in your post, especially the clarification of scaling and passing-mark. I have no doubt that the marking system of the department is fair enough to accomodate for any unexpected distribution of marks, within reasonable grounds. We therefore cannot and should not form any movements to try to convince the department of what to do. The department has vast experience and history dealing with this paper (as well as for every other established paper of Compsci), whereas we are mostly only first timers of this paper. The wisdom of where to place the pass-mark should therefore best not be placed upon us. Sincerely yours, VVTL-i |
Vote for scaliing people cont'd by Felix (kcho089) on November 10, 2003, 11:53 am |
Lets vote guys.....should we do something?? The previous post has a fault so i assume they lock it..... |
Re: Vote for scaliing people cont'd by Burkhard (bwue001) on November 10, 2003, 6:49 pm | ||||||
Felix wrote:
Let me ask you something: If you own a company and you want to employ new people, do you choose the ones which have suitable qualifications or do you let the applicants vote whether they get employed or not? So how do you think we determine grades? If we would give grades according to student votes than your degree would have no more value than toilet paper. Luckily for you we still have some minimum standards and as a result many of our students get scholarships with top overseas universities. Felix wrote:
Wrong assumption - though I think we have currently some server problems. Felix wrote:
Hard yes, unfair no. For my part most of the question were similar to one of my exams in a previous year and students did very well in that year. [quote:8d2315f6fa] Can we actually make a poll or vote and forward to the course administrator so that we can scale up? |
Felix wrote:
In the last lecture I talked about the exam and I strongly advised you to do the easy questions first and that there are always a few hard questions which only very few students can answer. DC wrote:
It was hard and every exam should be hard since otherwise it is impossible to differentiate between excellent, good, not-so-good and bad students. Note that it makes no difference whether an exam is hard or easy. If it's easy the marking is stricter and the grade boundaries are higher. In fact, hard exams are much fairer because that way you can make a silly mistake and still get a good grade. Similarly there is no point asking for a scaling of the exam, because it has he same effect as choosing lower grade boundaries and as mentioned previously the grade boundaries take into account the difficulty of the exam. DC wrote:
I said there are 10 points about solving recurrence relations (i.e. telescoping) and there were 10 points about telescoping. Question 6,7,9,11 didn't require telescoping, for question 12 you only had to determine the recurrence formulas WITHOUT solving them via telescoping. Also, if you visited the lectures you should have noticed that the analysis of just about all recursive algorithms leads to recurrence relations which of course are solved in this lecture via telescoping. And I even said in the last lecture that questions about sorting and searching might intersect with some of the other topics (e.g. "big-Oh" notation). DC wrote:
It's impossible to test everything unless we extend the exam from 2 to 4-5 hours. I also mentioned many many times that you should study everything we did in the lecture. If you "gamble" and you decide to concentrate on some topics then this is your responsibility and you should not blame the lecturers. [quote:8d2315f6fa="VVTL-i"] I guess the somewhat unusual or biased arrangement of examined materials, and as DC[/ i] has said - the fact that many of the algorithm analysis questions favoured heavily upon pre-existing knowledge with telescoping |
by knack (pduf006) on November 11, 2003, 10:48 am |
[quote:8bc1323274] I can assure you that exam won't be scaled up just because people are complaining. |
by VVTL-i (ocho004) on November 14, 2003, 1:58 pm | ||||||
Something was not working with the other thread.. I've reposted here instead, hope its okay cross posting :P
Forgive me if my wording was ambiguous. I meant preexisting knowledge, as in if we studied well and have gone to see the lecturers and/or tutors when we need additoinal, we would be able to do very well in most of the Algorithm questions, as it is my opinion that a number questions of that section are linked or referenced to the process of recurrence and telescoping, and our well understanding of that part has therefore become even more crucial. I too agree that telescoping had been well covered during lectures and perhaps in tutorials (you may experience differently in different tutorial streams). I rate both you and Georgy as very good lecturers, so I hope I have not conveyed the wrong message. I very much look forward to be lectured by either of you again in my forthcoming CompSci papers, or be it 220 if the real world decides I have not done enough :-/ Burkhard wrote:
My sincere apologies. Thinking back I should have done a little more research before making a statement as such. And while I did consult the past year papers of 2002 to 2003, I haven't looked at those of 2001. My apologies again to for not looking more in-depth before making such deductions. Burkhard wrote:
While I do not dispute the weighting of each section remained the same as in the past, what I was meaning to say is that due to the change of orders in covering the three topics, Algorithm Analysys had become the final topic of our paper. I believe it has traditionally been so, that the last taught, or third topic (regardless of its content), carries the most weighting in exams, due to the fact that none of topic 3 would have had the chance to be tested with the students before the exams. (However, section 1 and part of section 2 can be and have been covered in the mid-term test.) I am assuming that the weighting for each section is different (i.e. not 33.3% for each of the 3 topics). I have based this on the information provided on the opening few slides of our last set of lecture slides, that was designed to help us revise and recapture on what we have learnt on AA. Looking at it again, it says topic of Graph Algorithm, Automata Theory, and Analysis of Algorthms, are allocated with 30, 40, and 50 marks respectively. I am beginning to wonder, if perhaps your implication of "The overall weighting of each part is the same as in previous years.", actually includes the weighting/percentage covered by the mid-term test too. If it is indeed so, it is a major oversight of mine (in terms of seeing the big picture), and I hope you can excuse me for such a mistake. I agree with most of what you've mentioned in your post, especially the clarification of scaling and passing-mark. I have no doubt that the marking system of the department is fair enough to accomodate for any unexpected distribution of marks, within reasonable grounds. We therefore cannot and should not form any movements to try to convince the department of what to do. The department has vast experience and history dealing with this paper (as well as for every other established paper of Compsci), whereas we are mostly only first timers of this paper. The wisdom of where to place the pass-mark should therefore best not be placed upon us. |
Agree. by navyboy (tson003) on November 10, 2003, 5:09 pm |
Of course 100% Agree. It's really hard.!!!! TOO Too hard!!!!!! |
exam results out!!! by frazzle (dazh001) on November 24, 2003, 6:35 pm |
Woo hoo the exam results are out!!!!!!! |
by fez (jbro179) on November 24, 2003, 9:46 pm |
Man Im so glad I passed, it was the only result I was worried about |
by zerodays (dlee064) on November 25, 2003, 12:33 am |
see, i knew theres going to be a scale up (or the pass mark 50% has been lowered) |
Re: exam results out!!! by christian (celv004) on November 25, 2003, 3:41 am | ||
frazzle wrote:
I know! Passed and am very very very happy with that! Now I don't have to worry any more and can just enjoy my vacation and Christmas back in Old Norway (brr....gonna be cold alrite :-) See you guys next semester, or maybe even at summer school! |