文件名称:UFApp

  • 所属分类:
  • 数据结构常用算法
  • 资源属性:
  • [Java] [源码]
  • 上传时间:
  • 2013-10-27
  • 文件大小:
  • 1.98mb
  • 下载次数:
  • 0次
  • 提 供 者:
  • a***
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用



write an application UFApp that

1.  Prompts for a file name.

2.  Reads the first integer, which is the number of sites.

3.  Reads each pair of integers, p and q, representing sites and if not already connected, connects by calling union(p,q).

4.  At end of input, print

a.  the number of sites

b.  the number of components

c.  the elapsed time in milliseconds to read an process all input pairs of sites (step 2)

Run the application for each of QF, QU and QUPC for input files of size 1K, 2K, 4K, 8K, 16K, 32K, 64K, 128K as long as the time is not greater than 10 seconds (10000 msec). Provide a text file with the results.

-write an application UFApp that

1.  Prompts for a file name.

2.  Reads the first integer, which is the number of sites.

3.  Reads each pair of integers, p and q, representing sites and if not already connected, connects by calling union(p,q).

4.  At end of input, print

a.  the number of sites

b.  the number of components

c.  the elapsed time in milliseconds to read an process all input pairs of sites (step 2)

Run the application for each of QF, QU and QUPC for input files of size 1K, 2K, 4K, 8K, 16K, 32K, 64K, 128K as long as the time is not greater than 10 seconds (10000 msec). Provide a text file with the results.


(系统自动生成,下载前可以参看下载内容)

下载文件列表





UFApp\HW6.docx

.....\hw6Data\128KUF.txt

.....\.......\16KUF.txt

.....\.......\1KUF.txt

.....\.......\2KUF.txt

.....\.......\32KUF.txt

.....\.......\4KUF.txt

.....\.......\64KUF.txt

.....\.......\8KUF.txt

.....\...JUnitTests\QFTest.java

.....\.............\QUPCTest.java

.....\.............\QUTest.java

.....\.............\UFApp.java

.....\solution\ans.txt

.....\........\ans.txt.bak

.....\........\QF.java

.....\........\QF.java.bak

.....\........\QU.java

.....\........\QU.java.bak

.....\........\QUPC.java

.....\........\QUPC.java.bak

.....\........\UF.java

.....\........\UF.java.bak

.....\hw6Data

.....\hw6JUnitTests

.....\solution

UFApp

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org