,

SPOJ 1484. Search in XML

Brief description: … 树模式…


·

Brief description:

… 树模式匹配

Analysis:

… 算法暴力即可、难点集中在读数据阶段。。
http://paste.ubuntu.com/1578786/

External link:

http://www.spoj.com/problems/PT07H/

Discussion

  1. Xiaolong Li 的头像

    Hi Xiaodao,
    I am a fan of you for a long time /$:^@^
    I tried to solve this problem on SPOJ using Python but I constantly get TLE /$:/~
    I think my recursive algorithm just runs linear time, which is probably what you mean by brutal search, so
    is it possible that the time limit for this problem, 3s, is too short for Python? /$:0o0
    I see from the statistics that your C++ code takes around 2s and Python is much slower than C++.
    Could you please give me some suggestions? Any help will be grealy appreciated! /$:owo

    1. xiaodao 的头像

      .. . Hi, I think use python to solve this kind of problem is impossible in some sence … /$:^ ^ ( although I didn’t try by myself on this problem yet … ) .. There are some Online Judge set time limit to different language with different factor such as CodeChef … But not for spoj. I am looking foward weather there could be some one who can solve it with Python or any other interpreted language.~~

  2. Xiaoqin 的头像

    算法的link是空的,请问是删除了吗?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。