Manually stack management

6 views
Skip to first unread message

Shen Victor

unread,
May 8, 2011, 12:28:44 AM5/8/11
to cs2110-sp11
I am not sure if it is right since to run the DFS on the large graphs, I manually allocate 64MB memory for the stacks, Is that permissible?

--
Haocheng Shen
Cornell 2013'

Robert Escriva

unread,
May 8, 2011, 7:36:51 AM5/8/11
to cornell-c...@googlegroups.com

What do you mean? I just used an object from the Java collections framework.

Halostarshen

unread,
May 8, 2011, 11:06:49 AM5/8/11
to cornell-c...@googlegroups.com
In the run configurations, I used "-Xss64m" to expand the stack

在 May 8, 2011,7:36 AM,Robert Escriva <esc...@cs.cornell.edu> 写到:

Christina Brandt

unread,
May 8, 2011, 11:41:10 AM5/8/11
to cornell-c...@googlegroups.com
This was not what Robert was talking about.  In manually managing the stack, he was talking about implementing an iterative version of DFS that creates and manages a Stack object...
cheers
christie

2011/5/8 Halostarshen <halost...@gmail.com>

Shen Victor

unread,
May 8, 2011, 12:17:30 PM5/8/11
to cornell-c...@googlegroups.com
So, is expanding the stack allowed by run-config allowed?

Shen Victor

unread,
May 8, 2011, 12:19:00 PM5/8/11
to cornell-c...@googlegroups.com
Sorry...a typo.... I mean ...is it allowed to expand the system stack by using "-Xss64m" command for the assignment?

Christina Brandt

unread,
May 8, 2011, 1:03:24 PM5/8/11
to cornell-c...@googlegroups.com
By doing that, you are clearly not manually managing the stack; you are just increasing your computer's stack space and hoping everything works.
Look through the messages in the newsgroup, I would say it is not allowed.
http://groups.google.com/group/cornell-cs2110-sp11/browse_thread/thread/77c4550d0ecd143a/d8647af14a2bd7ec?lnk=gst&q=stack#d8647af14a2bd7ec
http://groups.google.com/group/cornell-cs2110-sp11/browse_thread/thread/f49e9122a9e02ca5/3361d72f1e135ba0?lnk=gst&q=stack#3361d72f1e135ba0
~Christie

Shen Victor

unread,
May 8, 2011, 1:18:26 PM5/8/11
to cornell-c...@googlegroups.com
But actually it works ....

Christina Brandt

unread,
May 8, 2011, 1:27:02 PM5/8/11
to cornell-c...@googlegroups.com
By doing that, you are clearly not manually managing the stack; you are just requiring an unnecessary increase your computer's stack space. cheers
~Christie

Shen Victor

unread,
May 8, 2011, 2:35:28 PM5/8/11
to cornell-c...@googlegroups.com
But it was just posted before the due deadline and in the hw writeup nothing was mentioned about the stack management or asked us to manage the use of stack memory. 

Nikos Karampatziakis

unread,
May 8, 2011, 2:42:12 PM5/8/11
to cornell-c...@googlegroups.com
This question has been answered many times before in the group and we have been
telling students to use their own stack for more than 10 days.

-Nikos

Reply all
Reply to author
Forward
0 new messages