A1, Q2B

17 views
Skip to first unread message

Brian

unread,
Oct 20, 2010, 12:27:17 AM10/20/10
to csc2417-f10
Do we have to worry about when the two sequences are of different
length?

I have a solution for when they're the same length, but when they're
of different length... well, the solution still works, except it now
involves a lot of special +1/-1 issues for when fractional position
values are rounded off. I mean, the core of the algorithm still works,
but the pseudocode is a pain to write succinctly and to read, since I
have if-elses flying every which way.

Orion Buske

unread,
Oct 20, 2010, 12:28:58 AM10/20/10
to csc24...@googlegroups.com
I don't know. Since I didn't write pseudocode, I didn't find it too problematic. I just added an extra paragraph explaining how to handle the case when they're not of the same length.

Michael Brudno

unread,
Oct 20, 2010, 12:31:48 AM10/20/10
to csc24...@googlegroups.com
Yes, don't worry about this; the point is for you to get the idea, not
to write code for these problems.

Brian

unread,
Oct 20, 2010, 12:40:58 AM10/20/10
to csc2417-f10
Aw hell. And here I've got like 4 pages of carefully formatted
Microsoft Word pseudocode already.

On Oct 20, 12:31 am, Michael Brudno <bru...@gmail.com> wrote:
> Yes, don't worry about this; the point is for you to get the idea, not
> to write code for these problems.
>

Yeleiny Bonilla

unread,
Oct 20, 2010, 12:53:05 AM10/20/10
to csc24...@googlegroups.com
Im glad that we don't have to write the code!! that's actually a relief :)

Yele.

Yeleiny Bonilla

unread,
Oct 20, 2010, 10:44:50 AM10/20/10
to csc24...@googlegroups.com

The assignment can be hand-written right??

Yele.


Michael Brudno

unread,
Oct 20, 2010, 10:48:58 AM10/20/10
to csc24...@googlegroups.com
Certainly.
Reply all
Reply to author
Forward
0 new messages