<?xml version="1.0" encoding="gb2312"?>

<!-- RSS generated by oioj.net on 4/16/2004 ; 感谢LeXRus提供 RSS 2.0 文档; 此文件可自由使用，但请保留此行信息 --> 
<!-- Source download URL: http://blogger.org.cn/blog/rss2.asp       -->
<rss version="2.0">

<channel>
<title>ayorange的博客</title>
<link>http://blogger.org.cn/blog/blog.asp?name=ayorange</link>
<description>ayorange的博客</description>
<copyright>blogger.org.cn</copyright>
<generator>W3CHINA Blog</generator>
<webMaster>webmaster@blogger.org.cn</webMaster>
<item>
<title><![CDATA[外企的一道面试题,寻求您的答案!]]></title>
<link>http://blogger.org.cn/blog/more.asp?name=ayorange&amp;id=17362</link>
<author>ayorange</author>
<pubDate>2006/8/9 6:28:02</pubDate>
<description><![CDATA[
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face="Times New Roman">Question 2-XML Schema, SQL Database, and Data Structures and Algorithms</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face="Times New Roman">Below is an example of a Workflow. Please refer to it to answer questions (a) through (f)</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>(a) Design an XML schema for a Workflow(图如下所示).</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>(b) Based on your design, write the XML representation for the Workflow below.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>(c) Design the SQL database schema for a Workflow.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>(d) In Java/C++/C, implement a Graph data structure for a Workflow.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>(e) Write the SQL queries that are necessary for constructing a Graph object.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 26.25pt; TEXT-INDENT: -26.25pt; mso-char-indent-count: -2.5"><SPAN lang=EN-US><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>(f)In Java/C++/C, implement an algorithm to number the Workflow steps in a depth-first-search order, such as the number sequence shown below.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 26.25pt; TEXT-INDENT: -26.25pt; mso-char-indent-count: -2.5"><SPAN lang=EN-US><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>(g) What other DFS order sequences are possible for this graph? Why?</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 26.25pt; TEXT-INDENT: -26.25pt; mso-char-indent-count: -2.5"><SPAN lang=EN-US><FONT face="Times New Roman"></FONT></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 26.25pt; TEXT-INDENT: -26.25pt; mso-char-indent-count: -2.5"><SPAN lang=EN-US>图如下所示：我稍微解释一下,这是一个公司内部的工作流图(workflow),所先是"Start"&nbsp;发送一个"Request"给"Manager&nbsp;Approval&nbsp;"如果审批不通过转交给"Resubmit","Resubmit"再递交还给"Request"要求重发.&nbsp;如果"ManagerApproal"审批通过,他就判断这个请求是给谁的然后决定是转发给"Finance&nbsp;Approval"还是"HR&nbsp;Approval".&nbsp;这两个部门各自对这个请求进行审批，如果审批不能被当前部门通过的话，就要把请求递交给"Resubmit"，"Resubmit"再递交还给"Request"要求重发.如果审批通过则递交给"Process&nbsp;Request"&nbsp;最后end"<BR>注:蓝色圆圈表示每个步骤的编号！可以单击图片看清整个图！<BR>请告之你知道的部分答案也可以！非常感谢!!!</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 26.25pt; TEXT-INDENT: -26.25pt; mso-char-indent-count: -2.5"><SPAN lang=EN-US><IMG style="BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; BORDER-RIGHT-COLOR: #000000" src="http://blogger.org.cn/blog/uploadfile/2006813796327.JPG" border=0></SPAN></P>]]></description>
</item>
</channel>
</rss>